michaellperry / jinaga

Universal web back-end, offering an application-agnostic API, real-time collaboration, and conflict resolution.
http://jinaga.com
MIT License
35 stars 3 forks source link

Optimize query by removing type from results #29

Open michaellperry opened 5 years ago

michaellperry commented 5 years ago

Test query to determine whether the F.type=xxxx condition is applied to the tail of the topmost chain, indicating that all results will have the same known type. If this test is true, then return an array of hashes instead of an array of fact references.

Perform the same test on the client to determine which form of response to accept. Even if an array of hashes is expected, tolerate a server that responds with an array of fact references.