Graphql new type falls back to JsonString
Hello, I got a new type defined as:
I would have expected for the grapqhl generated type to have each field defined, instead the
ContactInfo type is globally defined as JsonString. Is this intended behaviour, or am I missing something?8 Replies
Sounds wrong to me. How are you using this type in your resources?
input type missing? they are separate
this is how it is used in the resource:
you can use a newtype like that iirc, use an embed instead
A newtype should work that way just fine
in graphql?
there might be a bug then, because I yanked some stuff to embeds not that long ago cause I also couldnt get newtype to work properly as an attr for a map
I just assumed it wasnt meant to work 🤷
from the docs it sounds like I should be able to have visibility on the inner fields, but maybe I interpreted it wrong https://hexdocs.pm/ash_graphql/use-maps-with-graphql.html
I also ran into this issue. What worked was doing as @Oliver Mulelid-Tynes said and use an embedded resource.