Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Improved FlowQuery find operations for Neos 9 #5434

Open
1 task done
mficzel opened this issue Jan 10, 2025 · 0 comments · May be fixed by #5435
Open
1 task done

FEATURE: Improved FlowQuery find operations for Neos 9 #5434

mficzel opened this issue Jan 10, 2025 · 0 comments · May be fixed by #5435
Labels

Comments

@mficzel
Copy link
Member

mficzel commented Jan 10, 2025

Is there an existing issue for this topic?

  • I have searched the existing issues

Description

The syntax of find and children operations is quite ambigious and maps pooly to the new CR API.

Possible Solution

Since this is hard to fix new flowQuery operations that are modeled for the cr could help.

deprecate find in favor of

q(site).findByCriteria('Neos.Neos:Document,!Vendor.Site:Foo', 'prop1 ^= "foo" AND NOT (prop2 = "bar" OR prop3 = "baz")', {limit: 1, offset: 0})
q(site).findById('abc,defg')
# maybe aswell
q(site).findByPath('foo/bar')
q(site).findByRelativePath('foo/bar')
q(site).findByAbsolutePath('<Node.Type>/foo/bar')

deprecate children in favor of

q(site).childrenByCriteria() -> for consistency with findByCriteria and deprecate children
q(site).childByName() -> for auto created nodes
@mficzel mficzel changed the title FEATURE: Improved FlowQuery operations for Neos 9 FEATURE: Improved FlowQuery find operations for Neos 9 Jan 10, 2025
mficzel added a commit to mficzel/neos-development-collection that referenced this issue Jan 10, 2025
`findByCriteria` allows to query the subgraph below the contextNode with the following arguments:
- string | null: nodeTypefilter
- string | null: propertyValueCriteria
- object{offset?:int, limit?:int} | null: pagination

`findByIdentifier` will find a node with the given aggregate id in the subgraph defined by the contextNode:
- string: nodeAggregateId

Resolves: neos#5434
mficzel added a commit to mficzel/neos-development-collection that referenced this issue Jan 10, 2025
`findByCriteria` allows to query the subgraph below the contextNode
arguments:
- string | null: nodeTypefilter
- string | null: propertyValueCriteria
- object{offset?:int, limit?:int} | null: pagination

`findByIdentifier` will find a node with the given aggregate id in the subgraph defined by the contextNode
arguments:
- string: nodeAggregateId

Resolves: neos#5434
mficzel added a commit to mficzel/neos-development-collection that referenced this issue Jan 10, 2025
`findByCriteria` allows to query the subgraph below the contextNode
arguments:
- string | null: nodeTypefilter
- string | null: propertyValueCriteria
- object{offset?:int, limit?:int} | null: pagination

`findByIdentifier` will find a node with the given aggregate id in the subgraph defined by the contextNode
arguments:
- string: nodeAggregateId

Resolves: neos#5434
mficzel added a commit to mficzel/neos-development-collection that referenced this issue Jan 10, 2025
`findByCriteria` allows to query the subgraph below the contextNode
arguments:
- string | null: nodeTypefilter
- string | null: propertyValueCriteria
- object{offset?:int, limit?:int} | null: pagination

`findByIdentifier` will find a node with the given aggregate id in the subgraph defined by the contextNode
arguments:
- string: nodeAggregateId

Resolves: neos#5434
mficzel added a commit to mficzel/neos-development-collection that referenced this issue Jan 10, 2025
`findByCriteria` allows to query the subgraph below the contextNode
arguments:
- string | null: nodeTypefilter
- string | null: propertyValueCriteria
- object{offset?:int, limit?:int} | null: pagination

`findByIdentifier` will find a node with the given aggregate id in the subgraph defined by the contextNode
arguments:
- string: nodeAggregateId

Resolves: neos#5434
mficzel added a commit to mficzel/neos-development-collection that referenced this issue Jan 10, 2025
`findByCriteria` allows to query the subgraph below the contextNode
arguments:
- string | null: nodeTypefilter
- string | null: propertyValueCriteria
- object{offset?:int, limit?:int} | null: pagination

`findByIdentifier` will find a node with the given aggregate id in the subgraph defined by the contextNode
arguments:
- string: nodeAggregateId

Resolves: neos#5434
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant