Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Query Syntax Enhancement #2

Open
enijar opened this issue Jan 19, 2018 · 0 comments
Open

Query Syntax Enhancement #2

enijar opened this issue Jan 19, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@enijar
Copy link
Member

enijar commented Jan 19, 2018

Description
Add [index] syntax to query, with index being the index of the array.

Examples

Store.get('user.roles[0]'); // First element of roles array

Store.get('user.roles[-1]'); // Last element of roles array

Specification
This will get the index value from an array.

@enijar enijar added the enhancement New feature or request label Jan 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant