Skip to content

Cannot query field "_service" on type "Query". I'm not using Federation. #6238

Answered by vmarchesin
vmarchesin asked this question in Q&A
Discussion options

You must be logged in to vote

@haykerman I've been using Apollo Studio since I started with this project. I did not get any errors until recently, and I have no idea what could cause this besides what is in the federation docs. I just stripped my typedefs and resolvers to be as barebones as possible, and I just have the typedef and resolver for:

// resolver
export default {
  Node: {
    __resolveType: (obj) =>  obj,
  },
};
# typedef
scalar Cursor
scalar JSON
scalar JSONObject

interface Node {
  id: ID!
}

type Records {
  count: Int
}

type PageInfo {
  startCursor: String
  endCursor: String
}

type Query {
  node(id: ID!): Node
}

input PaginationInput {
  skip: Int
  take: Int
  cursor: Cursor
}

input FilterInput

Replies: 5 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@haykerman
Comment options

@glasser
Comment options

@vmarchesin
Comment options

@glasser
Comment options

@vmarchesin
Comment options

Answer selected by vmarchesin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@trevor-scheer
Comment options

@mayakoneval
Comment options

Comment options

You must be logged in to vote
1 reply
@eurbs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants