1
Fork 0
mirror of https://github.com/Airsequel/AirGQL.git synced 2025-07-29 14:23:18 +03:00

Tweak introspection to reflect previous change

This commit is contained in:
prescientmoon 2024-05-04 00:27:26 +02:00
commit 51bf1ebd4d

View file

@ -1326,6 +1326,10 @@ getSchemaFieldOutput dbId conn accessMode tables = do
ReadOnly -> Null
WriteOnly -> obj
ReadAndWrite -> obj
requiresRead obj = case accessMode of
ReadOnly -> Null
WriteOnly -> obj
ReadAndWrite -> obj
pure $
customRowTypes
@ -1379,42 +1383,43 @@ getSchemaFieldOutput dbId conn accessMode tables = do
]
)
]
, Object $
HashMap.fromList
[ ("name", "returning")
,
( "type"
, Object $
HashMap.fromList
[ ("kind", "NON_NULL")
,
( "ofType"
, Object $
HashMap.fromList
[ ("kind", "LIST")
,
( "ofType"
, Object $
HashMap.fromList
[ ("kind", "NON_NULL")
,
( "ofType"
, Object $
HashMap.fromList
[ ("kind", "OBJECT")
,
( "name"
, String $ doubleXEncodeGql table.name <> "_row"
)
]
)
]
)
]
)
]
)
]
, requiresRead $
Object $
HashMap.fromList
[ ("name", "returning")
,
( "type"
, Object $
HashMap.fromList
[ ("kind", "NON_NULL")
,
( "ofType"
, Object $
HashMap.fromList
[ ("kind", "LIST")
,
( "ofType"
, Object $
HashMap.fromList
[ ("kind", "NON_NULL")
,
( "ofType"
, Object $
HashMap.fromList
[ ("kind", "OBJECT")
,
( "name"
, String $ doubleXEncodeGql table.name <> "_row"
)
]
)
]
)
]
)
]
)
]
]
)
]