Skip to content

[Docs] example showing integration with prisma #75

Closed
@peterschussheim

Description

@peterschussheim

Problem

I've spent quite a bit of time trying to get this binding integrated into the prisma node-advanced template with zero success.

I am most definitely using the package wrong, however, I think if we had a realistic example demonstrating proper use, others and myself included would have an easier time using this binding (and bindings in general).

/Users/peter/Sources/Repos/notes/packages/notes-prisma/node_modules/graphql-binding-github/node_modules/graphql/language/parser.js:152
  throw unexpected(lexer);
  ^
GraphQLError: Syntax Error: Unexpected Name "GitObject"
    at syntaxError (/Users/peter/Sources/Repos/notes/packages/notes-prisma/node_modules/graphql-binding-github/node_modules/graphql/error/syntaxError.js:24:10)
    at unexpected (/Users/peter/Sources/Repos/notes/packages/notes-prisma/node_modules/graphql-binding-github/node_modules/graphql/language/parser.js:1322:33)
    at parseDefinition (/Users/peter/Sources/Repos/notes/packages/notes-prisma/node_modules/graphql-binding-github/node_modules/graphql/language/parser.js:152:9)
    at parseDocument (/Users/peter/Sources/Repos/notes/packages/notes-prisma/node_modules/graphql-binding-github/node_modules/graphql/language/parser.js:110:22)
    at parse (/Users/peter/Sources/Repos/notes/packages/notes-prisma/node_modules/graphql-binding-github/node_modules/graphql/language/parser.js:38:10)
    at Object.buildSchema (/Users/peter/Sources/Repos/notes/packages/notes-prisma/node_modules/graphql-binding-github/node_modules/graphql/utilities/buildASTSchema.js:461:43)
    at Object.makeRemoteExecutableSchema (/Users/peter/Sources/Repos/notes/packages/notes-prisma/node_modules/graphql-binding-github/node_modules/graphql-tools/dist/stitching/makeRemoteExecutableSchema.js:54:28)
    at new GitHub (/Users/peter/Sources/Repos/notes/packages/notes-prisma/node_modules/graphql-binding-github/dist/index.js:27:38)
    at Object.<anonymous> (/Users/peter/Sources/Repos/notes/packages/notes-prisma/src/resolvers/Query.js:10:16)
    at Module._compile (module.js:635:30)
[nodemon] app crashed - waiting for file changes before starting...

Thank you

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions