You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Sangria doesn't support map values as scalars. The choice was made to preserve security, e.g., prevent NoSQL Injections as discussed here. However, to be able to use Apollo federation on top of Sangria, there is a need for accepting map values (json objects) as scalars. The federation issue was raised here.
Now, I opened this issue to keep track of the efforts that are being done to solve it without opening the security hole.
Details
Let's consider the following schema:
scalar _Any
type Query {
_entities(representations: [_Any!]!): [_Entity]!
}
By solving this issue, we will be able to perform the following queries:
Currently, Sangria doesn't support map values as scalars. The choice was made to preserve security, e.g., prevent NoSQL Injections as discussed here. However, to be able to use Apollo federation on top of Sangria, there is a need for accepting map values (json objects) as scalars. The federation issue was raised here.
Now, I opened this issue to keep track of the efforts that are being done to solve it without opening the security hole.
Details
Let's consider the following schema:
By solving this issue, we will be able to perform the following queries:
or using the input object notation:
The text was updated successfully, but these errors were encountered: