TinCanJS
TinCanJS copied to clipboard
lrs.getStatements will not query on an inline agent object
tincan.getStatements({ params: { agent: {mbox: "mailto:[email protected]"} } });
gives a mysterious error about version.
tincan.getStatements({ params: { agent: new TinCan.Agent({mbox: "mailto:[email protected]"}) } });
This works just fine. Can we not parse out an agent out of the provided object?
@brianjmiller please take a look some time
Basically, yes. At this time the query parameters requires a pre-constructed TinCan.Agent or TinCan.Group. We can leave this open as a feature enhancement, there are probably other places that could use this kind of sugar.