You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems rather simple, however, in my schema, my order table has a column named items of type json. Here's an example of what the items column on the order table would contain:
The items field on my OrderType is a GraphQLList(OrderItemType). Thus, my OrderItemType is a basic GraphQLObjectType with some scalar type fields which resolve as expected. However, one of the product field in my OrderItemType is a string containing a global ID of a ProductType. Currently I am only able to resolve the ID as a string, but am unsure of how to resolve it into a ProductType with join-monster? Is this even possible or should I ditch the JSON column in turn for an additional order_item table?
The text was updated successfully, but these errors were encountered:
Hey, I am trying to make the following query possible:
which would return something like:
Seems rather simple, however, in my schema, my
order
table has a column nameditems
of typejson
. Here's an example of what theitems
column on theorder
table would contain:The
items
field on myOrderType
is aGraphQLList(OrderItemType)
. Thus, myOrderItemType
is a basicGraphQLObjectType
with some scalar type fields which resolve as expected. However, one of theproduct
field in myOrderItemType
is a string containing a global ID of aProductType
. Currently I am only able to resolve the ID as a string, but am unsure of how to resolve it into aProductType
with join-monster? Is this even possible or should I ditch the JSON column in turn for an additionalorder_item
table?The text was updated successfully, but these errors were encountered: