R
Помогите, пожалуйста, разобраться с вопросом 🙏Возможно ли узнать схему graphql приложения в production если Introspection query блокируется сервером? ( __typename, __schema)
Или хотя бы узнать какие query поддерживает сервер.
{ _service { sdl } }Size: a a a
R
{ _service { sdl } }R
R

GO

DE
{ id, fullName ... }{ varialbes: { id, fullName ... } }GO
{ id, fullName ... }{ varialbes: { id, fullName ... } }BS
BS
SK
fragment entity on Entity {
module
name
fullName @client
}
Где fullName - ${module}.${name}
сделано через резолверexport function createApollo(httpLink: HttpLink): ApolloClientOptions<any> {
return {
link: httpLink.create({
uri: environment.graphql,
}),
cache: new InMemoryCache({
dataIdFromObject: defaultDataIdFromObject,
}),
resolvers: {
Entity: {
fullName: (entity: any): string => {
if (!entity.module || !entity.name) {
throw new Error('Apollo: Entity: specify module and name');
}
return `${entity.module}.${entity.name}`;
}
},
},
};
}
Почему при генерации типов ругается на эту директиву?apollo client:codegen -c apollo.config.js --target typescript --passthroughCustomScalars --customScalarsPrefix=GQL_ --globalTypesFile=src/__generated__/globalTypes.ts
Cannot query field "fullName" on type "Entity". Did you mean "name"?
Что я не сделал, чтобы сгенерировались типы?@client должна быть установлена на бэкенде в схеме?P@
R
R
BS

BS

i
BS
i
BS
BS
i