Hi, I’ve got a user relationship named properties that return multiple records per user, I want to basically return for a specific user an array with the properties ids. What I currently have is user.properties().fetch() and it’s returning everything. How can I return only the ids?
Can you try?
It returns me all the properties ids on the table, it should be only two
Can u share the query being executed by setting debug: true inside the
Hello, I can confirm that
user.properties().ids() returning all ids from the pivot table.
Example repo: https://github.com/ammezie/tweetr-api