Closed alexnakagawa closed 4 years ago
I should probably specify this in the docs somewhere, put Jungle expects the name
for each dataSource to be the single of the name, as it adds a s
to whatever the name is for the plural query. This could cause some weird things, like querying multiple of class would be classs... but as for your problem, changing format: "json", name: "athletes", ....
to format: "json", name: "athlete", ....
would fix it
That's very good to know! Thanks so much (:
Love the idea, y'all (: can't wait to see where development goes with this. I wish I had more javascript knowledge to help, but hope to be able to get to that point really soon.
I have a JSON in my
dataSources
within my jungle.config.js file which is defined as follows:I then perform a query:
call
{JSON.stringify(QUERYRES)}
in a Svelte file in mycomponents
folder, which only returns the first item as follows: