Coquet
MManifest
•Created by Coquet on 9/6/2024 in #questions-🙋
I'm having trouble querying "belongsTo"
Here's my yaml.
name: TODO MVC Application
entities:
Todo:
properties:
- {name: "title", type: string}
- {name: "description", type: string}
- {name: "completed", type: boolean}
- {name: "order", type: number}
- {name: "createdAt", type: timestamp}
belongsTo:
- TodoList
TodoList:
properties:
- {name: "title", type: string}
- {name: "createdAt", type: timestamp}
and this is how I'm issueing the query with the SDK:
manifest.from('todos').with(['Todolist', 'Todolist.id']).where(
Todolist.id = ${todoListId}
);
But the API tells me this:
"Property Todolist.id does not exist in Todo"
I tried with other names, but haven't been able to get it to work3 replies