Skip to content

Commit

Permalink
use server version of vulcan when relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-burel committed Oct 1, 2021
1 parent ade743c commit 71b8c41
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/lib/api/context.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Context creation, for graphql but also REST endpoints
*/
import { Connector, VulcanGraphqlModel } from "@vulcanjs/graphql";
import { Connector, VulcanGraphqlModel } from "@vulcanjs/graphql/server";

import { createMongooseConnector } from "@vulcanjs/mongo";
import { User, UserConnector, UserType } from "~/models/user.server";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/api/seed.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createMutator, getModelConnector } from "@vulcanjs/graphql";
import { createMutator, getModelConnector } from "@vulcanjs/graphql/server";
import { User } from "~/models/user";

const seed = async (context) => {
Expand Down
2 changes: 1 addition & 1 deletion src/models/sampleModel.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
CreateGraphqlModelOptionsServer,
createGraphqlModelServer,
VulcanGraphqlSchemaServer,
} from "@vulcanjs/graphql";
} from "@vulcanjs/graphql/server";
import { createMongooseConnector } from "@vulcanjs/mongo";
import merge from "lodash/merge";
import { modelDef as modelDefShared } from "./sampleModel";
Expand Down
2 changes: 1 addition & 1 deletion src/models/user.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
CreateGraphqlModelOptionsServer,
createGraphqlModelServer,
VulcanGraphqlSchemaServer,
} from "@vulcanjs/graphql";
} from "@vulcanjs/graphql/server";
import { createMongooseConnector } from "@vulcanjs/mongo";

import {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/account/changePassword.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Request } from "express";
import { updateMutator } from "@vulcanjs/graphql";
import { updateMutator } from "@vulcanjs/graphql/server";
import { NextApiRequest, NextApiResponse } from "next";
import { User, UserConnector, UserType } from "~/models/user.server";

Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/account/reset-password.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Request } from "express";
import { updateMutator } from "@vulcanjs/graphql";
import { updateMutator } from "@vulcanjs/graphql/server";
import { NextApiRequest, NextApiResponse } from "next";
import { User, UserConnector } from "~/models/user.server";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/account/signup.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Request } from "express";
import { createMutator } from "@vulcanjs/graphql";
import { createMutator } from "@vulcanjs/graphql/server";
import { NextApiRequest, NextApiResponse } from "next";
import { User, UserConnector, UserTypeServer } from "~/models/user.server";
import { contextFromReq } from "~/lib/api/context";
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/account/verify-email.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Request } from "express";
import { updateMutator } from "@vulcanjs/graphql";
import { updateMutator } from "@vulcanjs/graphql/server";
import { NextApiRequest, NextApiResponse } from "next";
import { User, UserConnector } from "~/models/user.server";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import cors from "cors";
import mongoose from "mongoose";
import { ApolloServer, gql } from "apollo-server-express";
import { makeExecutableSchema, mergeSchemas } from "graphql-tools";
import { buildApolloSchema } from "@vulcanjs/graphql";
import { buildApolloSchema } from "@vulcanjs/graphql/server";

import mongoConnection from "~/lib/api/middlewares/mongoConnection";
import corsOptions from "~/lib/api/cors";
Expand Down

0 comments on commit 71b8c41

Please sign in to comment.