Hi,
I just started Gatsby with Contentful and GraphQL.
I playing with GraphQL and I'm wondering why ID is not the same in GraphQuery and Contentful dashboard?
There is a c before the ID, if I remove it (exactly as the Contentful dasboard) I doesn't work anymore.
Contentful dashboard : 15jwOBqpxqSAOy2eOO4S0m
Why?



There are some graphql restriction that ID fields can't start with number so we prefix them with c. Contentful entries should have contentful_id field which does not have that restriction that you can filter by (instead of id)
There are some graphql restriction that ID fields can't start with number so we prefix them with
c. Contentful entries should havecontentful_idfield which does not have that restriction that you can filter by (instead ofid)
Thanks for your answer.
I tried contentful_id so, then it seems to work.
But I just found that the edges returns "two nodes" instead one.
Why?
id)
contentful_id
That is interesting - do you use multiple locale/languages? can you add locale and actual id to query results?
That is interesting - do you use multiple locale/languages? can you add locale and actual id to query results?
Yeah, I add a local : "French", so I have 2 locals (US and FR) in my Contentful.
Can you show me how to query with locale, please? I don't find any documentation about this.
There should be field like locale, node_locale, lang or something like that available to query (and to filter by)
There should be field like
locale,node_locale,langor something like that available to query (and to filter by)
Yeah! Thanks, got it!


Where I can translate my post on Contentful? I add the local but what's next?

Check https://www.contentful.com/developers/docs/tutorials/general/setting-locales/ - this is more about Contentful than Gatsby and I don't know enough about it to explain properly ;)
@Khaledgarbaya Do you think it's worth adding localization section to gatsby-source-contentful docs?
Check https://www.contentful.com/developers/docs/tutorials/general/setting-locales/ - this is more about Contentful than Gatsby and I don't know enough about it to explain properly ;)
Thank you very much! Found to enable fields for locale : In the paragraph : Enabling on fields
Most helpful comment
There are some graphql restriction that ID fields can't start with number so we prefix them with
c. Contentful entries should havecontentful_idfield which does not have that restriction that you can filter by (instead ofid)