Class FieldSelectors
- Namespace
- JsonApiDotNetCore.Queries
- Assembly
- JsonApiDotNetCore.dll
A data structure that contains which fields (attributes and relationships) to retrieve, or empty to retrieve all. In the case of a relationship, it contains the nested query constraints.
[PublicAPI]
public sealed class FieldSelectors : Dictionary<ResourceFieldAttribute, QueryLayer?>, IDictionary<ResourceFieldAttribute, QueryLayer?>, ICollection<KeyValuePair<ResourceFieldAttribute, QueryLayer?>>, IReadOnlyDictionary<ResourceFieldAttribute, QueryLayer?>, IReadOnlyCollection<KeyValuePair<ResourceFieldAttribute, QueryLayer?>>, IEnumerable<KeyValuePair<ResourceFieldAttribute, QueryLayer?>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable
- Inheritance
-
FieldSelectors
- Implements
- Inherited Members
- Extension Methods
Properties
ContainsOnlyRelationships
public bool ContainsOnlyRelationships { get; }
Property Value
ContainsReadOnlyAttribute
public bool ContainsReadOnlyAttribute { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
Methods
ContainsField(ResourceFieldAttribute)
public bool ContainsField(ResourceFieldAttribute field)
Parameters
field
ResourceFieldAttribute
Returns
IncludeAttribute(AttrAttribute)
public void IncludeAttribute(AttrAttribute attribute)
Parameters
attribute
AttrAttribute
IncludeAttributes(IEnumerable<AttrAttribute>)
public void IncludeAttributes(IEnumerable<AttrAttribute> attributes)
Parameters
attributes
IEnumerable<AttrAttribute>
IncludeRelationship(RelationshipAttribute, QueryLayer)
public void IncludeRelationship(RelationshipAttribute relationship, QueryLayer queryLayer)
Parameters
relationship
RelationshipAttributequeryLayer
QueryLayer
RemoveAttributes()
public void RemoveAttributes()