mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-06 03:42:11 +02:00
Remove graphql collection param (#489)
* Remove GraphQL collection parameter * Update tech spec to mark query service complete
This commit is contained in:
parent
85e669c763
commit
27d657c58d
2 changed files with 2 additions and 2 deletions
|
|
@ -114,7 +114,7 @@ The structured data integration requires the following technical components:
|
||||||
|
|
||||||
Module: trustgraph-flow/trustgraph/storage/objects/cassandra
|
Module: trustgraph-flow/trustgraph/storage/objects/cassandra
|
||||||
|
|
||||||
5. **Structured Query Service**
|
5. **Structured Query Service** ✅ **[COMPLETE]**
|
||||||
- Accepts structured queries in defined formats
|
- Accepts structured queries in defined formats
|
||||||
- Executes queries against the structured store
|
- Executes queries against the structured store
|
||||||
- Returns objects matching query criteria
|
- Returns objects matching query criteria
|
||||||
|
|
|
||||||
|
|
@ -411,7 +411,6 @@ class Processor(FlowProcessor):
|
||||||
def make_resolver(s_name, r_schema, g_type, f_type, sort_enum):
|
def make_resolver(s_name, r_schema, g_type, f_type, sort_enum):
|
||||||
async def resolver(
|
async def resolver(
|
||||||
info: Info,
|
info: Info,
|
||||||
collection: str,
|
|
||||||
where: Optional[f_type] = None,
|
where: Optional[f_type] = None,
|
||||||
order_by: Optional[str] = None,
|
order_by: Optional[str] = None,
|
||||||
direction: Optional[sort_enum] = None,
|
direction: Optional[sort_enum] = None,
|
||||||
|
|
@ -420,6 +419,7 @@ class Processor(FlowProcessor):
|
||||||
# Get the processor instance from context
|
# Get the processor instance from context
|
||||||
processor = info.context["processor"]
|
processor = info.context["processor"]
|
||||||
user = info.context["user"]
|
user = info.context["user"]
|
||||||
|
collection = info.context["collection"]
|
||||||
|
|
||||||
# Parse the idiomatic where clause
|
# Parse the idiomatic where clause
|
||||||
filters = processor.parse_idiomatic_where_clause(where)
|
filters = processor.parse_idiomatic_where_clause(where)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue