Open AndreaNassisi opened 10 months ago
The changes json file can include new graphql queries and mutations based on custom graph queries like:
[ { "type": "Airport", "field": "outboundRoutesCountAdd", "action": "add", "value":"outboundRoutesCountAdd: Int @graphQuery(statement: \"MATCH (this)-[r:route]->(a) RETURN count(r)\")"}, ]
The issue is that the graph query needs to be flattened to a single line. When the graph query has multiple lines, it is difficult to author.
The proposal is to add to the changer statement the option of including a graph query from a file like:
[ { "type": "Airport", "field": "outboundRoutesCountAdd", "action": "add", "value":"outboundRoutesCountAdd: Int @graphQuery(statement: \"${file(\"<my-query-file-name>\")}\")"}, ]
The file my-query-file-name will include a readable graph query, including CRs
MATCH (this)-[r:route]->(a) RETURN count(r)
The changes json file can include new graphql queries and mutations based on custom graph queries like:
The issue is that the graph query needs to be flattened to a single line. When the graph query has multiple lines, it is difficult to author.
The proposal is to add to the changer statement the option of including a graph query from a file like:
The file my-query-file-name will include a readable graph query, including CRs