silverstripe / silverstripe-graphql

Serves Silverstripe data as GraphQL representations
BSD 3-Clause "New" or "Revised" License
52 stars 61 forks source link

Add documentation for custom scalar types #501

Open sirtoobii opened 1 year ago

sirtoobii commented 1 year ago

While searching for a way to have have generic a "Json Object" field, I found out that there is the concept of custom scalars and at first it seemed, as if this graphQL implementation does not support them. However, then I stumbled over #321 which eventually lead me to the scalars configuration property which does exactly that.

Having a custom scalar type for larger than 32bit integres could also help to properly resolve this issue: https://github.com/silverstripe/silverstripe-asset-admin/pull/1299