在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):stylesuxx/graphql-custom-types开源软件地址(OpenSource Url):https://github.com/stylesuxx/graphql-custom-types开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):GraphQL Custom Types
Available TypesLet me give you an overview of the available types. If you need more detail about how to use them, check schema.js in the tests folder. ScalarThe primitive types, aka everything that may be represented as a string. The ones with parameters you need to instantiate with new and pass according parameters, the others may be used as are.
complexity default options: {
alphaNumeric: false,
mixedCase: false,
specialChars: false
} InstallationMost likely you already will have it, but do not forget to also install graphql, since it is required as peer dependency: npm install graphql graphql-custom-types --save Usageimport {
GraphQLEmail,
GraphQLURL,
GraphQLDateTime,
GraphQLLimitedString,
GraphQLPassword,
GraphQLUUID
} from 'graphql-custom-types'; And use it in your Schema as you would use any other type. DevelopmentContributions are very welcome, please feel free to submit a type. If you do so make sure there are test cases in place. TestingThe test suite may be invoked by running: npm run test |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论