{"id":13732003,"url":"https://github.com/stylesuxx/graphql-custom-types","last_synced_at":"2025-04-04T14:10:06.801Z","repository":{"id":57253411,"uuid":"47731571","full_name":"stylesuxx/graphql-custom-types","owner":"stylesuxx","description":"A collection of custom GraphQL types like Email, URL and password.","archived":false,"fork":false,"pushed_at":"2022-09-14T20:58:53.000Z","size":80,"stargazers_count":217,"open_issues_count":3,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-15T03:54:27.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stylesuxx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-10T02:06:53.000Z","updated_at":"2024-08-10T08:45:24.000Z","dependencies_parsed_at":"2022-08-31T22:12:00.536Z","dependency_job_id":null,"html_url":"https://github.com/stylesuxx/graphql-custom-types","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylesuxx%2Fgraphql-custom-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylesuxx%2Fgraphql-custom-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylesuxx%2Fgraphql-custom-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylesuxx%2Fgraphql-custom-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stylesuxx","download_url":"https://codeload.github.com/stylesuxx/graphql-custom-types/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190255,"owners_count":20898702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T02:01:43.507Z","updated_at":"2025-04-04T14:10:06.777Z","avatar_url":"https://github.com/stylesuxx.png","language":"JavaScript","readme":"# GraphQL Custom Types\n[![npm version](https://badge.fury.io/js/graphql-custom-types.svg)](https://badge.fury.io/js/graphql-custom-types) [![Build Status](https://secure.travis-ci.org/stylesuxx/graphql-custom-types.png?branch=master)](https://travis-ci.org/stylesuxx/graphql-custom-types) [![Dependency Status](https://david-dm.org/stylesuxx/graphql-custom-types.svg)](https://david-dm.org/stylesuxx/graphql-custom-types) [![devDependencies Status](https://david-dm.org/stylesuxx/graphql-custom-types/dev-status.svg)](https://david-dm.org/stylesuxx/graphql-custom-types?type=dev) [![peerDependencies Status](https://david-dm.org/stylesuxx/graphql-custom-types/peer-status.svg)](https://david-dm.org/stylesuxx/graphql-custom-types?type=peer)\n\n\u003e This is a collection of custom GraphQL types that I tend to reuse quite often so I packed them into a module.\n\n## Available Types\nLet 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.\n\n### Scalar\nThe 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.\n\n* GraphQLEmail\n* GraphQLURL\n* GraphQLDateTime\n* GraphQLLimitedString(min, max, alphabet)\n* GraphQLPassword(min, max, alphabet, complexity)\n* GraphQLUUID\n\n*complexity* default options:\n```JavaScript\n{\n  alphaNumeric: false,\n  mixedCase: false,\n  specialChars: false\n}\n```\n\n## Installation\nMost likely you already will have it, but do not forget to also install *graphql*, since it is required as peer dependency:\n```Bash\nnpm install graphql graphql-custom-types --save\n```\n\n## Usage\n```JavaScript\nimport {\n  GraphQLEmail,\n  GraphQLURL,\n  GraphQLDateTime,\n  GraphQLLimitedString,\n  GraphQLPassword,\n  GraphQLUUID\n} from 'graphql-custom-types';\n```\n\nAnd use it in your Schema as you would use any other type.\n\n## Development\nContributions are very welcome, please feel free to submit a type. If you do so make sure there are test cases in place.\n\n### Testing\nThe test suite may be invoked by running:\n```Bash\nnpm run test\n```\n","funding_links":[],"categories":["JavaScript","\u003ca name=\"JavaScript\"\u003e\u003c/a\u003eJavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylesuxx%2Fgraphql-custom-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstylesuxx%2Fgraphql-custom-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylesuxx%2Fgraphql-custom-types/lists"}