Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Linq2GraphQL.Client/GraphBaseExecute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public abstract class GraphBaseExecute<T, TResult>
protected readonly Expression<Func<T, TResult>> 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,
Expand All @@ -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;
}

}
Expand Down
4 changes: 2 additions & 2 deletions src/Linq2GraphQL.Client/GraphClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ public async Task<GraphQLSchema> 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<GraphQLSchema>(this);

Expand Down
5 changes: 3 additions & 2 deletions src/Linq2GraphQL.Client/QueryNode.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Reflection;
using System.Diagnostics;
using System.Reflection;
using Linq2GraphQL.Client.Schema;

namespace Linq2GraphQL.Client;
Expand Down Expand Up @@ -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");
}
}
Expand Down