Details
-
Story
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
-
Empty show more show less
-
Yes
-
HL & LD 8
-
8
Description
User story:
As a developer I want the GraphQL endpoint to support filtering which content that it returns, so I can get just the content I need.
Notes:
Implement simple predicate parser:
- must support AND (&&) and OR (||)
- must support these operators:
- equal =
- not equal !=
- greater than >
- less than <
- greather or equal than >=
- less or eqaul than <=
- like
- it must be possible to implement and register additional filter operators
- filtering must be abstracted from JCR
- JCR implementation will be the default
Example of such filter:
{
characters(filter: '@releaseDate >= "2020-01-01" AND (@name LIKE "T%" OR @title LIKE "T%")') {
name
title
releaseDate
friends {
name
title
releaseDate
}
}
Acceptance criteria:
- API respects arguments, So I can specify `"name": "R2-D2"` and only get items where name matches R2-D2.
- API respects multiple arguments.
- Filter based on LIKE.
- Fulltext search
Checklists
Acceptance criteria
Attachments
Issue Links
- depends upon
-
MGNLGQL-37 Add support for defining enums and scalars via yaml
-
- Closed
-
- is cloned by
-
MGNLGQL-23 GraphQL filter on metadata
-
- Closed
-
-
MGNLGQL-35 Investigate - GraphQL simple filters
-
- Closed
-
- relates to
-
MGNLGQL-34 GraphQL get items with a particular parent or ancestor
-
- Open
-
(1 mentioned in)