Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

allApiBlueprint graphql error

Aperta
#365 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
graphql, javascript

Direzione di ricerca

Esegui npm run docs e ispeziona la query allApiBlueprint in gatsby/createPages.js:22:13, quindi traccia il motivo per cui quel campo è assente dallo schema GraphQL di Gatsby. Il lavoro è completato quando la build della documentazione termina senza l'errore GraphQL.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I got the error like below when I run npm run docs Anyone can help me out?

ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "allApiBlueprint" on type "Query".

If you don't expect "allApiBlueprint" to exist on the type "Query" it is most likely a typo.
However, if you expect "allApiBlueprint" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "allApiBlueprint" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: gatsby/createPages.js:22:13
Lingua principale
API Blueprint
Stelle
18
Fork
9
Merge medio
2g 5m
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SparkPost/developers.sparkpost.com

Tutte le issue di SparkPost/developers.sparkpost.com

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.