Class GraphQLDataProvider
- Namespace
- combit.Reporting.DataProviders
- Assembly
- combit.ListLabel31.CrossPlatform.dll
Provides a data provider implementation for GraphQL endpoints. Implements IDataProvider, ICanHandleUsedIdentifiers, ISupportsLogger, combit.Reporting.DataProviders.ISupportsParameters, ICanHandleUsedRelations, ISupplyBaseTables, and IDisposable.
public sealed class GraphQLDataProvider : IDataProvider, ICanHandleUsedIdentifiers, ISupportsLogger, ICanHandleUsedRelations, ISupplyBaseTables, IDisposable
- Inheritance
-
GraphQLDataProvider
- Implements
- Inherited Members
Constructors
GraphQLDataProvider(string, NetworkCredential, string?)
Initializes a new instance of the GraphQLDataProvider class with the specified URL, network credentials, and an optional schema.
public GraphQLDataProvider(string url, NetworkCredential networkCredential, string? schema = null)
Parameters
urlstringThe URL of the GraphQL endpoint.
networkCredentialNetworkCredentialThe network credentials for authentication.
schemastringThe optional GraphQL schema as a string.
GraphQLDataProvider(string, NetworkCredential, string, string, string?)
Initializes a new instance of the GraphQLDataProvider class with the specified parameters.
public GraphQLDataProvider(string url, NetworkCredential networkCredential, string localMetadataFilePath, string queryPrefix = "Q_", string? schema = null)
Parameters
urlstringThe URL of the GraphQL endpoint.
networkCredentialNetworkCredentialThe network credentials for authentication.
localMetadataFilePathstringThe local file path to a metadata file used for schema initialization.
queryPrefixstringThe prefix used when naming queries.
schemastringThe optional GraphQL schema as a string.
GraphQLDataProvider(string, string?)
Initializes a new instance of the GraphQLDataProvider class with the specified URL and an optional schema.
public GraphQLDataProvider(string url, string? schema = null)
Parameters
Properties
ConnectionTimeout
Gets or sets the connection timeout (in seconds) for GraphQL requests.
public int ConnectionTimeout { get; set; }
Property Value
Headers
Gets the HTTP request headers that will be used for GraphQL requests.
public HttpRequestHeaders Headers { get; }
Property Value
MaximumEmbeddedFieldDepth
Gets or sets the maximum depth allowed for embedded fields.
public int MaximumEmbeddedFieldDepth { get; set; }
Property Value
MutationsTypeName
Gets or sets the type name for mutations.
public string MutationsTypeName { get; set; }
Property Value
NetworkCredential
Gets the network credentials used to access the GraphQL endpoint.
public NetworkCredential NetworkCredential { get; }
Property Value
QueriesTypeName
Gets or sets the type name for queries.
public string QueriesTypeName { get; set; }
Property Value
QueryPrefix
Gets or sets the prefix used for naming queries.
public string QueryPrefix { get; set; }
Property Value
Schema
Gets or sets the GraphQL schema.
public string Schema { get; set; }
Property Value
SupportedElementTypes
Gets or sets the supported GraphQL element types.
public GraphQLElementType SupportedElementTypes { get; set; }
Property Value
Url
Gets or sets the URL of the GraphQL endpoint.
public string Url { get; set; }
Property Value
Methods
Dispose()
Releases all resources used by the GraphQLDataProvider.
public void Dispose()