GoogleCloudPlatform / GoogleCloudPlatform/spring-cloud-gcp

OrderBy spring-cloud-gcp-starter-data-firestore is not working for inside field (i.e. person.Name)

Open
#1,827 3 comments 0 reactions 0 assignees View on GitHub
firestore priority: p3 type: enhancement
Dominant language
Java
Stars
551
Forks
349
Avg merge
1d 13h
Merged PRs (30d)
14

Description

I have a document Resource { id, person: { Name}} and I'm trying to query the collection sorting by person.name but I'm receiving the following error:

"message": "Persistent property does not exist: person.Name",
"requestId": "5a9ea081-1",
"trace": "java.lang.IllegalArgumentException: Persistent property does not exist: person.Name\n\tat com.google.cloud.spring.data.firestore.repository.query.PartTreeFirestoreQuery.createFirestoreSortOrders(PartTreeFirestoreQuery.java:190)\n\tSuppressed: The stacktrace has been enhanced by Reactor, refer to additional information below: \nError has been observed at the ...."

The attribute exists and is never null, also, I've created index for that.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.