9 |
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/partials/_footer.liquid:
--------------------------------------------------------------------------------
1 | {% comment -%}Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.{% endcomment -%}
2 |
17 |
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/partials/_logo.liquid:
--------------------------------------------------------------------------------
1 | {% comment -%}Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.{% endcomment -%}
2 |
3 | {%- if _appLogoPath -%}
4 |
5 | {%- else -%}
6 |
7 | {%- endif -%}
8 |
9 |
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/partials/_scripts.liquid:
--------------------------------------------------------------------------------
1 | {% comment -%}Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.{% endcomment -%}
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/partials/_toc.liquid:
--------------------------------------------------------------------------------
1 | {% comment -%}Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.{% endcomment -%}
2 |
8 |
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/partials/breadcrumb.tmpl.partial:
--------------------------------------------------------------------------------
1 | {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2 |
3 |
4 |
5 |
6 |
{{_tocTitle}}
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/partials/customMREFContent.tmpl.partial:
--------------------------------------------------------------------------------
1 | {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2 | {{!Add your own custom template for the content for ManagedReference here}}
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/partials/dd-li.tmpl.partial:
--------------------------------------------------------------------------------
1 | {{#items}}
2 |
3 | {{/items}}
4 |
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/partials/footer.tmpl.partial:
--------------------------------------------------------------------------------
1 | {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2 |
3 |
15 |
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/partials/logo.tmpl.partial:
--------------------------------------------------------------------------------
1 | {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/partials/namespaceSubtitle.tmpl.partial:
--------------------------------------------------------------------------------
1 | {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2 | {{#inClass}}
3 | {{__global.classesInSubtitle}}
4 | {{/inClass}}
5 | {{#inStruct}}
6 | {{__global.structsInSubtitle}}
7 | {{/inStruct}}
8 | {{#inInterface}}
9 | {{__global.interfacesInSubtitle}}
10 | {{/inInterface}}
11 | {{#inEnum}}
12 | {{__global.enumsInSubtitle}}
13 | {{/inEnum}}
14 | {{#inDelegate}}
15 | {{__global.delegatesInSubtitle}}
16 | {{/inDelegate}}
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/partials/scripts.tmpl.partial:
--------------------------------------------------------------------------------
1 | {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/partials/searchResults.tmpl.partial:
--------------------------------------------------------------------------------
1 | {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/partials/toc.tmpl.partial:
--------------------------------------------------------------------------------
1 | {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2 |
3 |
9 |
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/styles/main.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GraphZen/graphzen-dotnet/fdb9b5a7c326b53b13a35d87e086b8122a7833f4/api-website/_exported_templates/default/styles/main.css
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/styles/main.js:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.
2 |
--------------------------------------------------------------------------------
/api-website/_exported_templates/default/toc.extension.js:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.
2 |
3 | /**
4 | * This method will be called at the start of exports.transform in toc.html.js
5 | */
6 | exports.preTransform = function (model) {
7 | return model;
8 | }
9 |
10 | /**
11 | * This method will be called at the end of exports.transform in toc.html.js
12 | */
13 | exports.postTransform = function (model) {
14 | return model;
15 | }
--------------------------------------------------------------------------------
/api-website/_redirects:
--------------------------------------------------------------------------------
1 | https://graphzen-api.netlify.com/* https://api.graphzen.com/:splat 301!
2 | / /api/GraphZen.html
--------------------------------------------------------------------------------
/api-website/assets/main-custom.js:
--------------------------------------------------------------------------------
1 | /* Hello world */
2 |
--------------------------------------------------------------------------------
/api-website/custom-template/partials/breadcrumb.tmpl.partial:
--------------------------------------------------------------------------------
1 | {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2 |
3 |
4 |
5 |
6 |
{{_tocTitle}}
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/api-website/custom-template/partials/footer.tmpl.partial:
--------------------------------------------------------------------------------
1 |
13 |
--------------------------------------------------------------------------------
/api-website/custom-template/partials/styles.tmpl.partial:
--------------------------------------------------------------------------------
1 |
2 |
6 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/api-website/docfx-filter-config.yml:
--------------------------------------------------------------------------------
1 | apiRules:
2 | - exclude:
3 | uidRegex: Internal
4 | type: Type
5 | - exclude:
6 | uidRegex: Infrastructure
7 | type: Type
8 | - exclude:
9 | uidRegex: Logging
10 | type: Type
11 | - exclude:
12 | uidRegex: ^System\.Object
13 | type: Member
14 | - exclude:
15 | uidRegex: ^System\.Attribute
16 | type: Member
17 |
--------------------------------------------------------------------------------
/api-website/index.md:
--------------------------------------------------------------------------------
1 | Welcome to api docs
2 |
--------------------------------------------------------------------------------
/api-website/serve.json:
--------------------------------------------------------------------------------
1 | {
2 | "redirects": [{ "source": "/", "destination": "/api/GraphZen.html" }]
3 | }
4 |
--------------------------------------------------------------------------------
/api-website/toc.yml:
--------------------------------------------------------------------------------
1 | - name: API Reference
2 | href: obj/api/
3 | - name: Documentation
4 | href: https://docs.graphzen.com
5 |
--------------------------------------------------------------------------------
/examples/SimpleBlog/Models/Comment.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | namespace SimpleBlog.Models
9 | {
10 | public class Comment
11 | {
12 | public int Id { get; set; }
13 | public int PostId { get; set; }
14 | public string Author { get; set; }
15 | public string Content { get; set; }
16 | }
17 | }
--------------------------------------------------------------------------------
/examples/SimpleBlog/Models/Post.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.ComponentModel;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace SimpleBlog.Models
10 | {
11 | public class Post
12 | {
13 | public int Id { get; set; }
14 |
15 | [Description("some click-baity title")]
16 | public string Title { get; set; }
17 |
18 | public string Author { get; set; }
19 | public string Content { get; set; }
20 | }
21 | }
--------------------------------------------------------------------------------
/examples/SimpleBlog/SimpleBlog.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp3.0
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/examples/SimpleBlog/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Debug",
5 | "System": "Information",
6 | "Microsoft": "Information"
7 | }
8 | }
9 | }
--------------------------------------------------------------------------------
/examples/SimpleBlog/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Warning"
5 | }
6 | },
7 | "AllowedHosts": "*"
8 | }
--------------------------------------------------------------------------------
/examples/SimpleBlog/wwwroot/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GraphZen/graphzen-dotnet/fdb9b5a7c326b53b13a35d87e086b8122a7833f4/examples/SimpleBlog/wwwroot/favicon.ico
--------------------------------------------------------------------------------
/gen.ps1:
--------------------------------------------------------------------------------
1 | .\build.ps1 -target Gen
--------------------------------------------------------------------------------
/global.json:
--------------------------------------------------------------------------------
1 | {
2 | "sdk": {
3 | "version": "3.0.100"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/src/GraphZen.Abstractions/GraphQLCanBeNullAttribute.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace GraphZen
10 | {
11 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Method | AttributeTargets.Parameter)]
12 | public class GraphQLCanBeNullAttribute : Attribute
13 | {
14 | }
15 | }
--------------------------------------------------------------------------------
/src/GraphZen.Abstractions/GraphQLIgnoreAttribute.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace GraphZen
10 | {
11 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Method | AttributeTargets.Class |
12 | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Enum |
13 | AttributeTargets.Field)]
14 | public class GraphQLIgnoreAttribute : Attribute
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.Abstractions/GraphQLListItemCanBeNullAttribute.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace GraphZen
10 | {
11 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Method | AttributeTargets.Parameter)]
12 | public class GraphQLListItemCanBeNullAttribute : Attribute
13 | {
14 | }
15 | }
--------------------------------------------------------------------------------
/src/GraphZen.Abstractions/GraphQLListItemNonNullAttribute.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace GraphZen
10 | {
11 | [AttributeUsage(AttributeTargets.Property)]
12 | public class GraphQLListItemNonNullAttribute : Attribute
13 | {
14 | }
15 | }
--------------------------------------------------------------------------------
/src/GraphZen.Abstractions/GraphQLNonNullAttribute.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace GraphZen
10 | {
11 | [AttributeUsage(AttributeTargets.Property)]
12 | public class GraphQLNonNullAttribute : Attribute
13 | {
14 | }
15 | }
--------------------------------------------------------------------------------
/src/GraphZen.Abstractions/GraphQLObjectAttribute.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace GraphZen
10 | {
11 | [AttributeUsage(AttributeTargets.Class)]
12 | public class GraphQLObjectAttribute : Attribute
13 | {
14 | }
15 | }
--------------------------------------------------------------------------------
/src/GraphZen.Abstractions/GraphQLTypeAttribute.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace GraphZen
10 | {
11 | public class GraphQLTypeAttribute : Attribute
12 | {
13 | public GraphQLTypeAttribute(Type clrType)
14 | {
15 | ClrType = Check.NotNull(clrType, nameof(clrType));
16 | }
17 |
18 | public Type ClrType { get; }
19 | }
20 | }
--------------------------------------------------------------------------------
/src/GraphZen.Abstractions/GraphQLUnionAttribute.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace GraphZen
10 | {
11 | [AttributeUsage(AttributeTargets.Interface)]
12 | public class GraphQLUnionAttribute : Attribute
13 | {
14 | }
15 | }
--------------------------------------------------------------------------------
/src/GraphZen.Abstractions/GraphZen.Abstractions.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.1;netcoreapp3.0
5 | Lightweight package with minimal dependencies containing data annotations for code-first GraphQL API development
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/GraphZen.Abstractions/IGraphQLDirective.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using GraphZen.LanguageModel;
8 | using JetBrains.Annotations;
9 |
10 | namespace GraphZen
11 | {
12 | public interface IGraphQLDirective
13 | {
14 | IEnumerable GetDirectiveLocations();
15 | }
16 | }
--------------------------------------------------------------------------------
/src/GraphZen.AspNetCore.Playground/Playground/CursorShape.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | namespace GraphZen.Playground
9 | {
10 | public enum CursorShape
11 | {
12 | Line,
13 | Block,
14 | Underline
15 | }
16 | }
--------------------------------------------------------------------------------
/src/GraphZen.AspNetCore.Playground/Playground/EditorTheme.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | namespace GraphZen.Playground
9 | {
10 | public enum EditorTheme
11 | {
12 | Dark,
13 | Light
14 | }
15 | }
--------------------------------------------------------------------------------
/src/GraphZen.AspNetCore.Playground/Playground/PlaygroundOptions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | namespace GraphZen.Playground
9 | {
10 | public class PlaygroundOptions
11 | {
12 | public string? Endpoint { get; set; }
13 | public string? SubscriptionEndpoint { get; set; }
14 | public string? WorkspaceName { get; set; }
15 | public PlaygroundSettings Settings { get; set; } = new PlaygroundSettings();
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.AspNetCore.Playground/Playground/RequestCredentials.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | namespace GraphZen.Playground
9 | {
10 | public enum RequestCredentials
11 | {
12 | Omit,
13 | Include,
14 | SameOrigin
15 | }
16 | }
--------------------------------------------------------------------------------
/src/GraphZen.AspNetCore.Server/Internal/GraphQLServerRequest.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace GraphZen.Internal
10 | {
11 | internal class GraphQLServerRequest
12 | {
13 | public string? OperationName { get; set; }
14 | public string? Query { get; set; }
15 | public IDictionary? Variables { get; set; }
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.AspNetCore/GraphZen.AspNetCore.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp3.0
5 | GraphQL server and playground for ASP.NET Core
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/GraphZen.Client/GraphQLError.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | namespace GraphZen
9 | {
10 | public class GraphQLError
11 | {
12 | public GraphQLError(string message)
13 | {
14 | Check.NotNull(message, nameof(message));
15 | Message = message;
16 | }
17 |
18 | public string Message { get; }
19 | }
20 | }
--------------------------------------------------------------------------------
/src/GraphZen.Client/GraphQLRequest.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | namespace GraphZen
9 | {
10 | public class GraphQLRequest
11 | {
12 | public string? OperationName { get; set; }
13 | public string? Query { get; set; }
14 | public object? Variables { get; set; }
15 | }
16 | }
--------------------------------------------------------------------------------
/src/GraphZen.Client/GraphZen.Client.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp3.0
5 | GraphQL client for .NET
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/GraphZen.Client/IGraphQLClient.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using System.Threading;
6 | using System.Threading.Tasks;
7 | using GraphZen.Infrastructure;
8 | using JetBrains.Annotations;
9 |
10 | namespace GraphZen
11 | {
12 | public interface IGraphQLClient
13 | {
14 | Task SendAsync(GraphQLRequest request, CancellationToken cancellationToken);
15 | Task SendAsync(GraphQLRequest request);
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.DevCli/GraphZen.DevCli.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | netcoreapp3.0
6 | false
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/GraphZen.Infrastructure/Infrastructure/AccessorExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | #nullable enable
10 |
11 |
12 | namespace GraphZen.Infrastructure
13 | {
14 | public static class AccessorExtensions
15 | {
16 | [DebuggerStepThrough]
17 | public static T GetInfrastructure(this IInfrastructure accessor) =>
18 | Check.NotNull(accessor, nameof(accessor)).Instance;
19 | }
20 | }
--------------------------------------------------------------------------------
/src/GraphZen.Infrastructure/Infrastructure/Extensions/System/StackExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace GraphZen.Infrastructure
10 | {
11 | internal static class StackExtensions
12 | {
13 | public static T PeekOrDefault(this Stack stack) =>
14 | Check.NotNull(stack, nameof(stack)).Count > 0 ? stack.Peek() : default;
15 | }
16 | }
--------------------------------------------------------------------------------
/src/GraphZen.Infrastructure/Infrastructure/IInfrastructure.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable enable
9 |
10 |
11 | namespace GraphZen.Infrastructure
12 | {
13 | public interface IInfrastructure
14 | {
15 | T Instance { get; }
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.Infrastructure/Infrastructure/IInspectable.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable enable
9 |
10 |
11 | namespace GraphZen.Infrastructure
12 | {
13 | public interface IInspectable
14 | {
15 | string GetDisplayValue();
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/AssemblyAttributes.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using System.Runtime.CompilerServices;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | [assembly: InternalsVisibleTo("GraphZen.Tests")]
10 | [assembly: InternalsVisibleTo("GraphZen.QueryEngine")]
11 | [assembly: InternalsVisibleTo("GraphZen.TypeSystem")]
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/IDocumentValidator.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using GraphZen.LanguageModel;
8 | using JetBrains.Annotations;
9 |
10 | namespace GraphZen
11 | {
12 | public interface IDocumentValidator
13 | {
14 | IEnumerable Validate(DocumentSyntax schemaDocument,
15 | DocumentSyntax? initialSchemaDocument = null);
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/AssemblyAttributes.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using System.Runtime.CompilerServices;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | #nullable disable
10 |
11 |
12 | [assembly: InternalsVisibleTo("GraphZen")]
13 | [assembly: InternalsVisibleTo("GraphZen.Tests")]
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Break.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | public sealed class Break : VisitAction
14 | {
15 | }
16 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/ContinueAction.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | public sealed class ContinueAction : VisitAction
14 | {
15 | }
16 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/IParser.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | public interface IParser
14 | {
15 | DocumentSyntax ParseDocument(string document);
16 |
17 |
18 | ValueSyntax ParseValue(string value);
19 |
20 |
21 | TypeSyntax ParseType(string type);
22 | }
23 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/IPrinter.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | public interface IPrinter
14 | {
15 | string Print(SyntaxNode node);
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Skip.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | public sealed class Skip : VisitAction
14 | {
15 | }
16 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/SourceLocation.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | public struct SourceLocation
14 | {
15 | public SourceLocation(int line, int column)
16 | {
17 | Line = line;
18 | Column = column;
19 | }
20 |
21 | public int Line { get; }
22 | public int Column { get; }
23 | }
24 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/ArgumentSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class ArgumentSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/BooleanValueSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class BooleanValueSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/DirectiveDefinitionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class DirectiveDefinitionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/DirectiveSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class DirectiveSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/EnumTypeDefinitionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class EnumTypeDefinitionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/EnumTypeExtensionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class EnumTypeExtensionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/EnumValueDefinitionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class EnumValueDefinitionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/EnumValueSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class EnumValueSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/FieldDefinitionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class FieldDefinitionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/FieldSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class FieldSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/FloatValueSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class FloatValueSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/FragmentDefinitionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class FragmentDefinitionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/FragmentSpreadSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class FragmentSpreadSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/IArgumentsNode.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace GraphZen.LanguageModel
10 | {
11 | public interface IArgumentsNode
12 | {
13 | IReadOnlyList Arguments { get; }
14 | }
15 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/IDescribedSyntax.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | public interface IDescribedSyntax
14 | {
15 | StringValueSyntax Description { get; }
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/IDirectivesSyntax.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | #nullable disable
10 |
11 |
12 | namespace GraphZen.LanguageModel
13 | {
14 | public interface IDirectivesSyntax
15 | {
16 | IReadOnlyList Directives { get; }
17 | }
18 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/IFieldsNode.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | #nullable disable
10 |
11 |
12 | namespace GraphZen.LanguageModel
13 | {
14 | public interface IFieldsNode : INamedSyntax
15 | {
16 | IReadOnlyList Fields { get; }
17 | }
18 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/IFragmentTypeConditionSyntax.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | public interface IFragmentTypeConditionSyntax
14 | {
15 | NamedTypeSyntax TypeCondition { get; }
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/INamedSyntax.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | public interface INamedSyntax
14 | {
15 | NameSyntax Name { get; }
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/ISyntaxNodeLocation.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | public interface ISyntaxNodeLocation
14 | {
15 | SyntaxLocation Location { get; }
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/InlineFragmentSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class InlineFragmentSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/InputObjectTypeDefinitionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class InputObjectTypeDefinitionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/InputObjectTypeExtensionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class InputObjectTypeExtensionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/IntValueSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class IntValueSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/InterfaceTypeDefinitionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class InterfaceTypeDefinitionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/InterfaceTypeExtensionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class InterfaceTypeExtensionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/ListTypeSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class ListTypeSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/ListValueSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class ListValueSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/NameSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class NameSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/NamedTypeSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class NamedTypeSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/NonNullTypeSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class NonNullTypeSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/NullValueSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class NullValueSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/ObjectFieldSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class ObjectFieldSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/ObjectTypeExtensionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class ObjectTypeExtensionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/ObjectValueSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class ObjectValueSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/OperationDefinitionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class OperationDefinitionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/OperationTypeDefinitionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class OperationTypeDefinitionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/PunctuatorSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class PunctuatorSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/ScalarTypeDefinitionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class ScalarTypeDefinitionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/ScalarTypeExtensionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class ScalarTypeExtensionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/SchemaDefinitionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class SchemaDefinitionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/SchemaExtensionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class SchemaExtensionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/SelectionSetSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class SelectionSetSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/StringValueSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class StringValueSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/UnionTypeDefinitonSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class UnionTypeDefinitionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/UnionTypeExtensionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class UnionTypeExtensionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/VariableDefinitionSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class VariableDefinitionSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Syntax/VariableSyntaxExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | [UsedImplicitly]
14 | public static class VariableSyntaxExtensions
15 | {
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Validation/DocumentValidationRuleVisitor.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel.Validation
12 | {
13 | public abstract class DocumentValidationRuleVisitor : ValidationRuleVisitor
14 | {
15 | protected DocumentValidationRuleVisitor(DocumentValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Validation/Rules/FieldArgsMustBeProperlynamed.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel.Validation.Rules
12 | {
13 | public class FieldArgsMustBeProperlyNamed : DocumentValidationRuleVisitor
14 | {
15 | public FieldArgsMustBeProperlyNamed(DocumentValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Validation/Rules/LoneSchemaDefinition.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel.Validation.Rules
12 | {
13 | public class LoneSchemaDefinition : DocumentValidationRuleVisitor
14 | {
15 | public LoneSchemaDefinition(DocumentValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/Validation/ValidationRule.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel.Validation
12 | {
13 | public delegate ValidationRuleVisitor ValidationRule(ValidationContext context);
14 | }
--------------------------------------------------------------------------------
/src/GraphZen.LanguageModel/LanguageModel/VistitorContext.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.LanguageModel
12 | {
13 | public class VistitorContext
14 | {
15 | }
16 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/AssemblyAttributes.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using System.Runtime.CompilerServices;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | #nullable disable
10 |
11 |
12 | [assembly: InternalsVisibleTo("GraphZen.Tests")]
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/GraphZen.QueryEngine.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.1;netcoreapp3.0
5 | GraphQL query executine engine. This package is not intended for stand-alone use. Install the GraphZen.AspNetCore.Server package for hosting GraphQL API servers.
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Execute.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine
12 | {
13 | internal static class Execute
14 | {
15 | }
16 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/ExecutionOptions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine
12 | {
13 | public class ExecutionOptions
14 | {
15 | public bool ThrowOnError { get; set; } = false;
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/IExecutionContext.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine
12 | {
13 | public interface IExecutionContext
14 | {
15 | }
16 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/IQueryValidator.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using GraphZen.LanguageModel;
8 | using GraphZen.TypeSystem;
9 | using JetBrains.Annotations;
10 |
11 | #nullable disable
12 |
13 |
14 | namespace GraphZen.QueryEngine.Validation
15 | {
16 | public interface IQueryValidator
17 | {
18 | IReadOnlyCollection Validate(Schema schema, DocumentSyntax query);
19 | }
20 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/KnownArgumentNames.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class KnownArgumentNames : QueryValidationRuleVisitor
14 | {
15 | public KnownArgumentNames(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/NoFragmentCycles.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class NoFragmentCycles : QueryValidationRuleVisitor
14 | {
15 | public NoFragmentCycles(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/NoUndefinedVariables.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class NoUndefinedVariables : QueryValidationRuleVisitor
14 | {
15 | public NoUndefinedVariables(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/NoUnusedFragments.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class NoUnusedFragments : QueryValidationRuleVisitor
14 | {
15 | public NoUnusedFragments(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/NoUnusedVariables.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class NoUnusedVariables : QueryValidationRuleVisitor
14 | {
15 | public NoUnusedVariables(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/OverlappingFieldsCanBeMerged.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class OverlappingFieldsCanBeMerged : QueryValidationRuleVisitor
14 | {
15 | public OverlappingFieldsCanBeMerged(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/PossibleFragmentSpreads.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class PossibleFragmentSpreads : QueryValidationRuleVisitor
14 | {
15 | public PossibleFragmentSpreads(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/ProvidedRequiredArguments.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class ProvidedRequiredArguments : QueryValidationRuleVisitor
14 | {
15 | public ProvidedRequiredArguments(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/ScalarLeafs.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class ScalarLeafs : QueryValidationRuleVisitor
14 | {
15 | public ScalarLeafs(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/SingleFieldSubscriptions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class SingleFieldSubscriptions : QueryValidationRuleVisitor
14 | {
15 | public SingleFieldSubscriptions(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/UniqueArgumentNames.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class UniqueArgumentNames : QueryValidationRuleVisitor
14 | {
15 | public UniqueArgumentNames(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/UniqueDirectivesPerLocation.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class UniqueDirectivesPerLocation : QueryValidationRuleVisitor
14 | {
15 | public UniqueDirectivesPerLocation(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/UniqueFragmentNames.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class UniqueFragmentNames : QueryValidationRuleVisitor
14 | {
15 | public UniqueFragmentNames(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/UniqueInputFieldNames.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class UniqueInputFieldNames : QueryValidationRuleVisitor
14 | {
15 | public UniqueInputFieldNames(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/UniqueVariableNames.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class UniqueVariableNames : QueryValidationRuleVisitor
14 | {
15 | public UniqueVariableNames(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/ValuesOfCorrectType.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class ValuesOfCorrectType : QueryValidationRuleVisitor
14 | {
15 | public ValuesOfCorrectType(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/VariablesAreInputTypes.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class VariablesAreInputTypes : QueryValidationRuleVisitor
14 | {
15 | public VariablesAreInputTypes(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.QueryEngine/QueryEngine/Validation/Rules/VariablesInAllowedPosition.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | #nullable disable
9 |
10 |
11 | namespace GraphZen.QueryEngine.Validation.Rules
12 | {
13 | public class VariablesInAllowedPosition : QueryValidationRuleVisitor
14 | {
15 | public VariablesInAllowedPosition(QueryValidationContext context) : base(context)
16 | {
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/src/GraphZen.TypeSystem/AssemblyAttributes.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using System.Runtime.CompilerServices;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | [assembly: InternalsVisibleTo("GraphZen.Tests")]
10 | [assembly: InternalsVisibleTo("GraphZen.TypeSystem.Tests")]
11 | [assembly: InternalsVisibleTo("GraphZen.QueryEngine")]
--------------------------------------------------------------------------------
/src/GraphZen.TypeSystem/GraphZen.TypeSystem.csproj.DotSettings:
--------------------------------------------------------------------------------
1 |
2 | True
--------------------------------------------------------------------------------
/src/GraphZen.TypeSystem/Infrastructure/IGraphQLContextOptions.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace GraphZen.Infrastructure
10 | {
11 | public interface IGraphQLContextOptions
12 | {
13 | IEnumerable Extensions { get; }
14 |
15 | TExtension? FindExtension()
16 | where TExtension : class, IGraphQLContextOptionsExtension;
17 | }
18 | }
--------------------------------------------------------------------------------
/src/GraphZen.TypeSystem/Infrastructure/IGraphQLContextOptionsBuilderInfrastructure.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 |
8 | namespace GraphZen.Infrastructure
9 | {
10 | public interface IGraphQLContextOptionsBuilderInfrastructure
11 | {
12 | void AddOrUpdateExtension([NotNull] TExtension extension)
13 | where TExtension : class, IGraphQLContextOptionsExtension;
14 | }
15 | }
--------------------------------------------------------------------------------
/src/GraphZen.TypeSystem/Infrastructure/IGraphQLContextOptionsExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Diagnostics.CodeAnalysis;
5 | using GraphZen.Infrastructure;
6 | using JetBrains.Annotations;
7 | using Microsoft.Extensions.DependencyInjection;
8 |
9 | namespace GraphZen.Infrastructure
10 | {
11 | public interface IGraphQLContextOptionsExtension
12 | {
13 | void ApplyServices([NotNull] IServiceCollection services);
14 | void Validate([NotNull] IGraphQLContextOptions options);
15 | }
16 | }
--------------------------------------------------------------------------------
/src/GraphZen.TypeSystem/Internal/InvalidTypeReferenceException.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace GraphZen.Internal
10 | {
11 | public class InvalidTypeReferenceException : Exception
12 | {
13 | public InvalidTypeReferenceException(string message, Exception innerException) : base(message, innerException)
14 | {
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/src/GraphZen.TypeSystem/Internal/Maybe/Some.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) GraphZen LLC. All rights reserved.
2 | // Licensed under the GraphZen Community License. See the LICENSE file in the project root for license information.
3 |
4 | using System.Collections.Generic;
5 | using System.Diagnostics.CodeAnalysis;
6 | using GraphZen.Infrastructure;
7 | using JetBrains.Annotations;
8 |
9 | namespace GraphZen.Internal
10 | {
11 | internal class Some : Maybe
12 | {
13 | protected Some(IReadOnlyList