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
For example, for cursor pagination that uses resource IDs we need some rule objects that use the Laravel JSON:API implementation to validate those IDs. I.e. we have the ID pattern to match against, we have the encoding/decoding of IDs, and then we can actually check whether those IDs exist too.
An example of cursor pagination validation as it exists at the moment woud be:
In this example, it doesn't work if the resource IDs are encoded as Laravel's exists rule doesn't know that the value it is given needs to be decoded before the database is queried.
For example, for cursor pagination that uses resource IDs we need some rule objects that use the Laravel JSON:API implementation to validate those IDs. I.e. we have the ID pattern to match against, we have the encoding/decoding of IDs, and then we can actually check whether those IDs exist too.
An example of cursor pagination validation as it exists at the moment woud be:
In this example, it doesn't work if the resource IDs are encoded as Laravel's
exists
rule doesn't know that the value it is given needs to be decoded before the database is queried.Originally posted by @othneildrew in #201 (comment)
The text was updated successfully, but these errors were encountered: