|
|
|
|
|
by maktouch
2926 days ago
|
|
> My understanding is the json type stuff is a language specific workaround and not part of the standard. The standard is made to be extended (https://www.apollographql.com/docs/graphql-tools/scalars.htm...) For example, you should start with making your own DateTime scalar. > What I sort of what is to be able to craft a query against a large set of objects like a customer/location/asset hierarchy and filter on different levels like sql query without it being in a database. You can totally do this without raw json scalar. Actually, it would be better without it. If you could go more in-depth details, I could make you a PoC. |
|
If I want to go Customer/Physical Site/Asset Level 1/Asset level 2 versus Physical Location/Customer/Asset Level 2/Asset Level 1 as a general navigation through the data objects as a query then I have to have both of those paths available in the schema or custom queries. I'm sure I'm not explaining my issue properly but I find its related to how the graph traversal works. As number of dimensions expand this gets harder. We looked at some of the sequelize generated queries via a node implementation and was generally concerned about the ORM queries used. You can get by maybe with code generation or dynamic schemas but starting to lose ease of use and some performance if you dump the whole schema that way. I'm sure I can workaround each of these but as a whole nothing really coalesced to something simpler to build and maintain overall. GraphQL as a standard is still useful I think for simple schemas that are broad and not deep is perhaps what I'm trying to say.