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

How to make a get query (using the primary index) #25

Open
etienneroudeix opened this issue Feb 4, 2016 · 0 comments
Open

How to make a get query (using the primary index) #25

etienneroudeix opened this issue Feb 4, 2016 · 0 comments
Labels

Comments

@etienneroudeix
Copy link
Contributor

Hi there,

Very probably a dummy question but I'm kinda stuck so far.

running :

MyEntity::find('myId');

correctly finds my entity but actually run in php-rql :

r.db('myDb').table('entities').filter({id: 'myId'});

which did not use my primary key.
It should be running :

r.db('myDb').table('entities').get('myId');

Very probably I missed something, any help would be appreciated.

@duxet duxet added the question label Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants