chore: query graph api (#9125)

CLOSES: FRMW-2704

**What**
Re-structure the Query graph API as well as introduce dynamic typing from schemas on the filters and better handling of relation treatment for fields/filters inference

Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
This commit is contained in:
Carlos R. L. Rodrigues
2024-09-16 08:32:44 -03:00
committed by GitHub
parent 3e97a64b21
commit 8829f89402
21 changed files with 2164 additions and 52 deletions

View File

@@ -78,8 +78,11 @@ export async function gqlSchemaToTypes({
documents: [],
config: {
scalars: {
DateTime: { output: "Date | string" },
JSON: { output: "Record<any, unknown>" },
DateTime: { input: "Date | string", output: "Date | string" },
JSON: {
input: "Record<string, unknown>",
output: "Record<string, unknown>",
},
},
},
filename: "",