Skip to content

Commit 6c4bdac

Browse files
keskiepii-1hartigrcapshaw
authored
52 transaction feature dependent ops (#99)
* support dependent variables in create mutations (_id fields not yet supported) * raise exception if exported variable is already defined * rename field 'id' to '_id' in exported variables * support createEdge via exported variables or fixed value (validation of 'connect' for interface not yet supported) * add export directive to api generation * check if 'annoatations' is undefined before inserting imported vars * fix reference to source var * remove duplicate function * add function to re-build info object * remove duplicates for delete * support dependent variables between create and createEdge * support export variables in update object * minor update * Corrected and updates changelog The changelog got messed after a marge/release desync. This is now hopefully corrected. And added some missing implementations. * Updated changelog for required inheritance * Corrected directives test for recent changes And fixed somethings that I apparently only did locally... * Update directives-tests-schema.graphql * validation of exported variables moved to LiUGraphQL/graphql-js and is now independent of the driver * support ID references as variables * Minor edge validation optimization (#98) * Implemented a small optimization to edge validation * Updated changelog to reflect the minor optimization Co-authored-by: Robin Keskisärkkä <[email protected]> * Added instructions for directives testing * Update README.md * Update CHANGELOG.md for releasing v0.1.2 * fix iteration of implementing types Co-authored-by: epii-1 <[email protected]> Co-authored-by: Olaf Hartig <[email protected]> Co-authored-by: rcapshaw <[email protected]>
1 parent edb7e24 commit 6c4bdac

File tree

3 files changed

+242
-1054
lines changed

3 files changed

+242
-1054
lines changed

graphql-api-generator/utils/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,7 @@ def print_schema_with_directives(schema):
12061206
:return string:
12071207
"""
12081208
manual_directives = {
1209+
'export': 'directive @export(as: String!) on FIELD',
12091210
'required': 'directive @required on FIELD_DEFINITION',
12101211
'key': 'directive @key(fields: [String!]!) on OBJECT | INPUT_OBJECT',
12111212
'distinct': 'directive @distinct on FIELD_DEFINITION | INPUT_FIELD_DEFINITION',

0 commit comments

Comments
 (0)