Hi. I was trying to get a field set as
index(hour) (not through Ratel) but via the
/admin/schema endpoint and…
These did not work:
creationTime: DateTime @index(hour)
creationTime: DateTime @index(hour) .
creationTime: dateTime .
creationTime: datetime @index(hour) .
Which leads to these questions:
While I do know that dateTime is not a part of official GraphQL spec but a custom scalar,
- How do I add an index to a field in
/admin/schemaendpoint itself? I saw an example of doing this in
/alterendpoint here: Indexes | Search | Dgraph Tour
- Since Types are case sensitive in GraphQL, and I am not able to find any GraphQL specific examples here: https://dgraph.io/docs//query-language/schema/#datetime-indices and the case is completely different.
- I tried searching but was not able to find relevant docs related to the ‘.’ character at the end of
datetime @index(hour) .Can you point me to the docs where I can find more details regarding it? Also wondering how to something like that in GraphQL.
- Can all operations/alterations related to the schema be done in
/admin/schemaendpoint? Why should there be a separate
Suggestion: In docs, while suggesting examples/code, it would be better to provide both RDF and GraphQL code for the sample maybe via a tabbed interface (I see that its mostly RDF now) which has to be translated into GraphQL queries/mutations/schema.