Created
June 2, 2021 14:29
-
-
Save bengrunfeld/e07dbcda04aab0265a12b9fbc76fd9e1 to your computer and use it in GitHub Desktop.
GraphQL Scalable TypeDefs File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { gql } from "apollo-server-express"; | |
import { User } from "./User"; | |
const typeDefs = gql` | |
${User.types} | |
type Query { | |
${User.queries} | |
} | |
type Mutation { | |
${User.mutations} | |
} | |
`; | |
export default typeDefs; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment