Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field '_service' doesn't exist on type 'Query' #79

Open
iamgnlc opened this issue Jun 9, 2020 · 3 comments
Open

Field '_service' doesn't exist on type 'Query' #79

iamgnlc opened this issue Jun 9, 2020 · 3 comments

Comments

@iamgnlc
Copy link

iamgnlc commented Jun 9, 2020

I've configured my Rails app per documentation and now trying to get the schema through my gateway build in Node.js, but got:

{ message: 'Field \'_service\' doesn\'t exist on type \'Query\'',
  locations: [ { line: 1, column: 30 } ],
  path: [ 'query GetServiceDefinition', '_service' ],
  extensions:
   { code: 'undefinedField',
     typeName: 'Query',
     fieldName: '_service' } } 0 [ { message: 'Field \'_service\' doesn\'t exist on type \'Query\'',
    locations: [ [Object] ],
    path: [ 'query GetServiceDefinition', '_service' ],
    extensions:
     { code: 'undefinedField',
       typeName: 'Query',
       fieldName: '_service' } } ]

The gateway is working fine with other federated apps, either build in rails or Node.js.

@foerever
Copy link

I'm also experiencing this issue. Wondering if it may be related to having a Graph::Types::BaseObject with a graphql_name of Query which may be conflicting with:

@daemonsy
Copy link
Contributor

Hey @iamgnlc , @foerever , do y'all happen to be using GraphQL 1.13?

@ghost
Copy link

ghost commented Jun 17, 2023

@daemonsy I have the same problem.
Error: Couldn't load service definitions for "timetables" at http://127.0.0.1:3000/graphql: 500: Internal Server Error

I've followed README

@edit
Done, I needed to generate schema through rover.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants