-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retrieving all Entity Types only returns the Types of the first 20 elements. #1698
Comments
Ok, noted. |
So, you are right in everything you say.
So, in a first request you get one batch of entity types (only God knows how many). Quite bad, sorry, but at least much better than it was. We will not close this issue until I've rewritten the whole thing. |
Not fixed but slightly improved the error of issue #1698
So, I think I got the library error fixed. Remember it's not really fixed, just the dirty hack that I described earlier. |
Thank you, now we can get all the types as we need :-) |
When retrieving all Entity Types through the endpoint
/ngsi-ld/v1/types
there is a problem with the backend:In the MongoDB query function
context.Orion-LD/src/lib/orionld/mongoc/mongocEntitiesGet.cpp
Line 60 in 659de32
limit
andoffset
are used for the query.The first problem is that it is not allowed to pass the
limit
andoffset
parameters to that endpoint.So only the first 20 (the default value for
limit
) elements are returned from the MongoDB and only the types from these entities are returned. Even if the URL parameters would be allowed, I think it makes no sense to use them in that way since the behaviour of the two parameters would be not as intended.The text was updated successfully, but these errors were encountered: