mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-04-24 16:00:53 +08:00
feat(graphql): Update Knex schemas.
This commit is contained in:
parent
3be75c70f0
commit
d2d8a732d8
packages/graphql/src/connections/Knex
@ -10,6 +10,13 @@
|
||||
"errorMessage": {
|
||||
"type": "KnexBuilder request property \"query\" should be an array."
|
||||
}
|
||||
},
|
||||
"tableName": {
|
||||
"type": ["string", "object"],
|
||||
"description": "The name of the table to query from.",
|
||||
"errorMessage": {
|
||||
"type": "KnexBuilder request property \"tableName\" should be a string or object"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -18,5 +18,11 @@
|
||||
"type": "KnexRaw request property \"parameters\" should be a string, number, array, or object."
|
||||
}
|
||||
}
|
||||
},
|
||||
"errorMessage": {
|
||||
"type": "KnexRaw request properties should be an object.",
|
||||
"required": {
|
||||
"query": "KnexRaw request should have required property \"query\"."
|
||||
}
|
||||
}
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "Lowdefy Connection Schema - Knex",
|
||||
"type": "object",
|
||||
"required": ["client"],
|
||||
"required": ["client", "connection"],
|
||||
"properties": {
|
||||
"client": {
|
||||
"type": "string",
|
||||
@ -17,6 +17,27 @@
|
||||
"errorMessage": {
|
||||
"type": "Knex connection property \"connection\" should be a string or object."
|
||||
}
|
||||
},
|
||||
"searchPath": {
|
||||
"type": "string",
|
||||
"description": "Set PostgreSQL search path.",
|
||||
"errorMessage": {
|
||||
"type": "Knex connection property \"searchPath\" should be a string."
|
||||
}
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"description": "Database version.",
|
||||
"errorMessage": {
|
||||
"type": "Knex connection property \"version\" should be a string."
|
||||
}
|
||||
}
|
||||
},
|
||||
"errorMessage": {
|
||||
"type": "Knex connection properties should be an object.",
|
||||
"required": {
|
||||
"client": "Knex connection should have required property \"client\".",
|
||||
"connection": "Knex connection should have required property \"connection\"."
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user