Right now if I have a column with uuid type and I want to pass its value as an argument to remote schema's String field, I'm getting an error
Cannot validate remote relationship because expected type "String", but got "uuid"
But it's technically possible to match uuid to String, because any uuid can be converted to string. Moreover, String is a superclass for any other GraphQL type, so value from any Postgre field could be matched to remote schema's String like this.
on the same note matching postgres text columns to graphql ID should be possible as well :)
Any workaround suggested for uuid -> string mapping?
This is a major showstopper for us, is there any workaround? Or perhaps someone from the graphql-engine project can point us to where something like a mapper could be implemented so that the OpenSource community can put up a PR perhaps? I'll be more than glad to take a stab at it!
This is a major showstopper for us, is there any workaround?
@danazkari Personally, I've migrated Hasura's table from uuid to String, still using it as a primary key.
Most helpful comment
on the same note matching postgres
textcolumns to graphqlIDshould be possible as well :)