Skip to content

Conversation

@lejeunerenard
Copy link
Contributor

Previously the IndexEncoder would be passed undefined as the component in the type in generateIndexKeyEncoding was the name of the array type schema and wouldn't match IndexTypeMap (the set of index types).

This PR adds a wrapping c.array() around the FQN of the key's type which resolves to the inner type. This only is supported when the key's array type is defined with a name. I.e., it has to be registered by itself and not nested.

Querying using an array key is awkward because the key encodes the length of the array and the values in the array are encoded in order. IMHO this is acceptable since array keys are more advanced and if one needs to query against a subset of the property array values, they would need an index anyways to support that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants