graphqld

所属分类:collect
开发工具:D
文件大小:0KB
下载次数:0
上传日期:2023-06-19 14:33:36
上 传 者sh-1993
说明:  一个vibe.d库,用于处理用d编程语言编写的GraphQL协议,
(A vibe.d library to handle the GraphQL Protocol written in the D Programming Language,)

文件列表:
.editorconfig (230, 2023-12-15)
LICENSE (7651, 2023-12-15)
Makefile (2663, 2023-12-15)
dub.json (364, 2023-12-15)
exeexcp (155, 2023-12-15)
graphql.js (24087, 2023-12-15)
graphql.yaml (8733, 2023-12-15)
source/ (0, 2023-12-15)
source/graphql/ (0, 2023-12-15)
source/graphql/argumentextractor.d (4967, 2023-12-15)
source/graphql/argumentextractortests.d (1768, 2023-12-15)
source/graphql/ast.d (43652, 2023-12-15)
source/graphql/astselector.d (6664, 2023-12-15)
source/graphql/builder.d (10818, 2023-12-15)
source/graphql/constants.d (1783, 2023-12-15)
source/graphql/directives.d (2928, 2023-12-15)
source/graphql/exception.d (787, 2023-12-15)
source/graphql/graphql.d (19486, 2023-12-15)
source/graphql/helper.d (28997, 2023-12-15)
source/graphql/lexer.d (18461, 2023-12-15)
source/graphql/package.d (490, 2023-12-15)
source/graphql/parser.d (123649, 2023-12-15)
source/graphql/parsertests.d (7638, 2023-12-15)
source/graphql/schema/ (0, 2023-12-15)
source/graphql/schema/directives.d (122, 2023-12-15)
source/graphql/schema/helper.d (333, 2023-12-15)
source/graphql/schema/introspectiontypes.d (2339, 2023-12-15)
source/graphql/schema/package.d (182, 2023-12-15)
source/graphql/schema/resolver.d (17165, 2023-12-15)
source/graphql/schema/toschemafile.d (7386, 2023-12-15)
source/graphql/schema/typeconversions.d (21261, 2023-12-15)
source/graphql/schema/types.d (26475, 2023-12-15)
source/graphql/starwars/ (0, 2023-12-15)
source/graphql/starwars/data.d (1713, 2023-12-15)
source/graphql/starwars/introspection.d (11796, 2023-12-15)
... ...

# GraphqlD: A graphql implementation for the D Programming language ![CI](https://github.com/burner/graphqld/workflows/ci/badge.svg) Graphql is a query language for apis. Given a query like for the schema in folder test. ``` { shipsselection(ids:[44,45]) { id commander { name } } } ``` You get back json that looks like: ```JS { "error": [], "data": { "shipsselection": [ { "id": 44, "commander": { "name": "Kathryn Janeway" } }, { "id": 45, "commander": { "name": "Jonathan Archer" } } ] } } ``` Graphiql type-ahead works, this makes schema introspection a lot nicer. ## Features This graphql implementation is based on June 2018 spec. ### Operation Execution - [x] Scalars - [x] Objects - [x] Lists of objects/interfaces - [x] Interfaces - [x] Unions - [x] Arguments - [x] Variables - [x] Fragments - [x] Directives - [x] Include - [x] Skip - [?] Custom (Requires changing the graphqld source) - [x] Enumerations - [x] Input Objects - [x] Mutations - [ ] Subscriptions (This needs vibe.d websocket integration) - [x] Async execution (when used with vibe.d blocking resolver are async by default) ### Validation - [ ] Arguments of correct type - [ ] Default values of correct type - [x] Fields on correct type - [x] Fragments on composite types - [X] Known argument names - [x] Executable Definition - [ ] Known directives - [x] Known fragment names - [x] Known type names - [x] Lone anonymous operations - [x] No fragment cycles - [x] No undefined variables - [x] No unused fragments - [x] No unused variables - [x] Overlapping fields can be merged (this is done during execution) - [x] Possible fragment spreads - [ ] Provide non-null arguments - [x] Scalar leafs - [x] Unique argument names - [x] Unique directives per location - [x] Unique fragment names - [x] Unique input field names - [x] Unique operation names - [x] Unique variable names - [ ] Variables are input types (this is actually a strange requirement) - [x] Variables in allowed position - [x] Single root field ### Schema Introspection - [x] __typename - [x] __type - [x] name - [x] kind - [x] description - [x] fields - [x] interfaces - [x] possibleTypes - [x] enumValues - [x] inputFields - [x] ofType - [x] __schema - [x] types - [x] queryType - [x] mutationType - [x] subscriptionType - [x] directives ### Comfort Features - [ ] Query AST cache - [ ] Json to resolver argument extractor - [ ] SQL query generation from AST - [x] Custom Leaf types (e.g. GQLDCustomLeaf!(std.datetime.DateTime)) Thank you to [graphql-dot](https://github.com/graphql-dotnet/graphql-dotnet) for the excelent list of features ## Documentation The Documentation is still WIP, please have a look at the vibe.d project in the test folder. This [file](test/source/app.d:430) gives a good overview on how to use graphqld with vibe.d. ## Contributing PRs are always welcome! # About Kaleidic Associates We are a boutique consultancy that advises a small number of hedge fund clients. We are not accepting new clients currently, but if you are interested in working either remotely or locally in London or Hong Kong, and if you are a talented hacker with a moral compass who aspires to excellence then feel free to drop me a line: laeeth at kaleidic.io We work with our partner Symmetry Investments, and some background on the firm can be found here: http://symmetryinvestments.com/about-us/

近期下载者

相关文件


收藏者