Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/List queries over the JSON APIForum ↗

List queries over the JSON API

App Development3 posts568 views6 likesLast activity Jul 2020
SN
SnehaOP
Jul 2020

Hi Team,

I am facing below error in the new version of SDK. Could someone help me in why am facing this which use to work fine.? Is there any syntax change?

[ ‘java.lang.RuntimeException: PrimTypeList not supported’ ]

CO
cocreature
Jul 2020

Hi @Sneha,

That looks like you are relying on the querying support for lists in the JSON API. That has been removed in SDK 1.0.0 (see https://docs.daml.com/support/release-notes.html#id17). The reason for the removal is that it didn’t turn out to be particularly useful since it only allowed for exact matches whereas you usually want a more relaxed query, e.g., that the list contains a specific element.

To recover the previous behavior, remove the list query from the API call to the JSON API and instead filter the result on the client side.

SN
Sneha
Jul 2020

Oh ok.
Thanks for the info @cocreature, this helps.

← Back to Discussions