Skip to content

Commit

Permalink
Update docs on how to extend @faststore/api's schema (#1416)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorhmp authored Jul 22, 2022
1 parent d76d959 commit adfd559
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ To extend the schema, one can:
```ts
import { getSchema, getTypeDefs } from '@faststore/api'
import { makeExecutableSchema, mergeSchemas } from '@graphql-tools/schema'
import { mergeTypeDefs } from '@graphql-tools/merge'
import { ApolloServer } from 'apollo-server'

// Setup type extensions
Expand Down Expand Up @@ -45,6 +46,7 @@ const getMergedSchemas = async () =>
typeDefs: mergedTypeDefs,
}),
],
resolvers,
})

// Merge schemas into a final schema
Expand Down

1 comment on commit adfd559

@vercel
Copy link

@vercel vercel bot commented on adfd559 Jul 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.