hello everyone, I need to a a third party schema t...
# prisma1-community
m
hello everyone, I need to a a third party schema to the typeDefs currently is looks like this
Copy code
typeDefs: 'src/schema.graphql',
just a string path, however, I need to also add this schema
Copy code
const { schema, resolvers } = gapiToGraphQL({ gapiAsJsonSchema: YouTubeAPI })
how can I combine them? thanks in advance
r
Hey @Melvin Pacheco 👋 Could you try this package: https://www.graphql-tools.com/docs/merge-typedefs/ This is used to merge schemas
m
Hello, Thank you for the reply. when I try any merging/stitching, I get these kinds of errors
Copy code
# import * from './generated/prisma.graphql'
  ^

SyntaxError: Invalid or unexpected token
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)