For example, let's say I have this Query and Type in my code and I don't want it to show _id
in Apollo sandbox explorer. Please is there a way to achieve this?
type Query {
getUser(userId: String!): UserObject
}
type UserObject {
_id: String
email: String
firstName: String
}
I'm trying to make it show only email
and firstName
without the _id
field in apollo sandbox explorer.
I've tried using introspection but it didn't show all my queries and mutations as expected. I've tried using directives but I'm not getting it and I don't know how. It should show something like this in the explorer, without the _id field.
type Query {
getUser(userId: String!): UserObject
}
type UserObject {
email: String
firstName: String
}