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:
parent
b3e0a07460
commit
51bf1ebd4d
1 changed files with 41 additions and 36 deletions
|
@ -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"
|
||||
)
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
||||
]
|
||||
]
|
||||
)
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue