mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-27 22:21:04 +02:00
Tweak the schema
This commit is contained in:
parent
8d4aa0069c
commit
1a3202bb8b
1 changed files with 2 additions and 4 deletions
|
|
@ -8,13 +8,11 @@ from ..core.topic import topic
|
||||||
# Structured Query Service - executes GraphQL queries
|
# Structured Query Service - executes GraphQL queries
|
||||||
|
|
||||||
class StructuredQueryRequest(Record):
|
class StructuredQueryRequest(Record):
|
||||||
query = String() # GraphQL query
|
question = String()
|
||||||
variables = Map(String()) # GraphQL variables
|
|
||||||
operation_name = String() # Optional operation name for multi-operation documents
|
|
||||||
|
|
||||||
class StructuredQueryResponse(Record):
|
class StructuredQueryResponse(Record):
|
||||||
error = Error()
|
error = Error()
|
||||||
data = String() # JSON-encoded GraphQL response data
|
data = String() # JSON-encoded GraphQL response data
|
||||||
errors = Array(String()) # GraphQL errors if any
|
errors = Array(String()) # GraphQL errors if any
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue