Class QueryStringParameterScopeParser
- Namespace
- JsonApiDotNetCore.Queries.Parsing
- Assembly
- JsonApiDotNetCore.dll
Parser for the JSON:API 'sort' and 'filter' query string parameter names, which indicate the scope their query string parameter value applies to. The value consists of an optional relationship chain ending in a to-many relationship, surrounded by brackets.
[PublicAPI]
public class QueryStringParameterScopeParser : QueryExpressionParser, IQueryStringParameterScopeParser
- Inheritance
-
QueryStringParameterScopeParser
- Implements
- Inherited Members
Methods
Parse(string, ResourceType)
Parses the specified source into a QueryStringParameterScopeExpression. Throws a QueryParseException if the input is invalid.
public QueryStringParameterScopeExpression Parse(string source, ResourceType resourceType)
Parameters
source
stringThe source text to read from.
resourceType
ResourceTypeThe resource type used to lookup JSON:API fields that are referenced in
source
.
Returns
ParseQueryStringParameterScope(ResourceType)
protected virtual QueryStringParameterScopeExpression ParseQueryStringParameterScope(ResourceType resourceType)
Parameters
resourceType
ResourceType