With the following code:
query: `
getSublessonBySlugs(slug: String!, id: ID!): Sublesson!,
`,
resolver: {
Query: {
getSublessonBySlugs: {
resolverOf: "application::sublesson.sublesson.find",
resolver: (obj, options, { context }) => {
strapi.log.debug("test", context.context.params);
return {
name: "abcdefg",
};
},
},
},
Mutation: {},
},
the following query:
getSublessonBySlugs(slug: "ergerg", id:123) {
name
}
my output is:
test {"_slug":"ergerg","id":"123","_limit":100}
I notice this doesn’t happen on ID but happens on every other field. Why is this? Is there any way to remove the underscore?