Guessing from doc I am trying to set a facet via mutation:
Facets can be created by using the | character to separate the predicate and facet key in a JSON object field name. This is the same encoding schema used to show facets in query results. E.g.
As far I can tell, we don’t have a solution for facets in GraphQL layer for now. As it is in its early stages, you should use the simple GraphQL behave. As GraphQL don’t supports Facets natively we need to giva another solution to that in the future stages of the graphql layer.
Yes that’s right. We don’t have facets yet in GraphQL, for that, you’ll need to be using GraphQL±
With the first release of GraphQL we’ll also be adding to the docs to include more details on what’s supported and what isn’t as well as a roadmap for future features.
Sounds very nice with the roadmap - I will keep my first iterations with GraphQL± and hope to be able to use graphql with current version schema(combining /alter schema naming convention <Type><predicate> and graphql schema)?
Regarding facets in current version - it looks like I have to use “Content-Type: application/rdf” to add them via /mutate endpoint: