diff --git a/src/Linq2GraphQL.Client/GraphBaseExecute.cs b/src/Linq2GraphQL.Client/GraphBaseExecute.cs index dbc3454..16cf5c5 100644 --- a/src/Linq2GraphQL.Client/GraphBaseExecute.cs +++ b/src/Linq2GraphQL.Client/GraphBaseExecute.cs @@ -14,7 +14,7 @@ public abstract class GraphBaseExecute protected readonly Expression> selector; private readonly SemaphoreSlim _lock = new(1, 1); - private bool intialized; + private bool initialized; private GraphQLSchema schema; public GraphBaseExecute(GraphClient client, OperationType operationType, QueryNode queryNode, @@ -33,12 +33,12 @@ private async Task InitQueryAsync() await _lock.WaitAsync(); try { - if (!intialized) + if (!initialized) { schema = await client.GetSchemaForSafeModeAsync(); QueryNode.SetAllUniqueVariableNames(); QueryNode.AddPrimitiveChildren(true, schema); - intialized = true; + initialized = true; } } diff --git a/src/Linq2GraphQL.Client/GraphClient.cs b/src/Linq2GraphQL.Client/GraphClient.cs index e5f2925..4c1314e 100644 --- a/src/Linq2GraphQL.Client/GraphClient.cs +++ b/src/Linq2GraphQL.Client/GraphClient.cs @@ -67,9 +67,9 @@ public async Task GetSchemaForSafeModeAsync() return null; } - var cackeKey = "Linq2GraphQL_Schema:" + HttpClient.BaseAddress; + var cacheKey = "Linq2GraphQL_Schema:" + HttpClient.BaseAddress; - return await cache.GetOrCreateAsync(cackeKey, async entry => + return await cache.GetOrCreateAsync(cacheKey, async entry => { var executor = new QueryExecutor(this); diff --git a/src/Linq2GraphQL.Client/QueryNode.cs b/src/Linq2GraphQL.Client/QueryNode.cs index e743bed..ee4a92c 100644 --- a/src/Linq2GraphQL.Client/QueryNode.cs +++ b/src/Linq2GraphQL.Client/QueryNode.cs @@ -1,4 +1,5 @@ -using System.Reflection; +using System.Diagnostics; +using System.Reflection; using Linq2GraphQL.Client.Schema; namespace Linq2GraphQL.Client; @@ -142,7 +143,7 @@ public void AddPrimitiveChildren(bool recursive, GraphQLSchema schema) } else { - Console.WriteLine( + Debug.WriteLine( $"Property: {propertyInfo.Name} Type: {Member.Name} was not present in active schema"); } }