mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-25 15:25:12 +02:00
Fix optionality in objects-query schema (#596)
This commit is contained in:
parent
ae13190093
commit
fe2dd704a2
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
from ..core.primitives import Error
|
from ..core.primitives import Error
|
||||||
from ..core.topic import topic
|
from ..core.topic import topic
|
||||||
|
|
@ -19,7 +20,7 @@ class ObjectsQueryRequest:
|
||||||
collection: str = "" # Data collection identifier (required for partition key)
|
collection: str = "" # Data collection identifier (required for partition key)
|
||||||
query: str = "" # GraphQL query string
|
query: str = "" # GraphQL query string
|
||||||
variables: dict[str, str] = field(default_factory=dict) # GraphQL variables
|
variables: dict[str, str] = field(default_factory=dict) # GraphQL variables
|
||||||
operation_name: str = "" # Operation to execute for multi-operation documents
|
operation_name: Optional[str] = None # Operation to execute for multi-operation documents
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class ObjectsQueryResponse:
|
class ObjectsQueryResponse:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue