{"id":18486184,"url":"https://github.com/mathsgod/gql-scalar-date","last_synced_at":"2025-05-13T22:13:15.429Z","repository":{"id":62525020,"uuid":"218734929","full_name":"mathsgod/gql-scalar-date","owner":"mathsgod","description":null,"archived":false,"fork":false,"pushed_at":"2020-03-11T02:58:56.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T09:03:24.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathsgod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-31T09:57:02.000Z","updated_at":"2020-03-11T02:58:58.000Z","dependencies_parsed_at":"2022-11-02T14:15:45.482Z","dependency_job_id":null,"html_url":"https://github.com/mathsgod/gql-scalar-date","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fgql-scalar-date","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fgql-scalar-date/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fgql-scalar-date/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fgql-scalar-date/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathsgod","download_url":"https://codeload.github.com/mathsgod/gql-scalar-date/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254036843,"owners_count":22003654,"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-11-06T12:48:14.021Z","updated_at":"2025-05-13T22:13:10.421Z","avatar_url":"https://github.com/mathsgod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gql-scalar-email\n\n```php\n    \n    $gql = \"\nscalar Date\nscalar DateTime\ntype Query{\n    testDate(d:Date):Date\n    testDateTime(dt:DateTime):DateTime\n}      \n\";\n\n   $typeConfigDecorator = function ($typeConfig) {\n        $name = $typeConfig['name'];\n\n        if ($name === 'Date') {\n            $email = new Scalar\\Date();\n\n            $typeConfig[\"serialize\"] = [$email, \"serialize\"];\n            $typeConfig[\"parseLiteral\"] = [$email, \"parseLiteral\"];\n        }\n\n            if ($name === 'DateTime') {\n            $email = new Scalar\\DateTime();\n\n            $typeConfig[\"serialize\"] = [$email, \"serialize\"];\n            $typeConfig[\"parseLiteral\"] = [$email, \"parseLiteral\"];\n        }\n\n        return $typeConfig;\n    };\n\n    $schema = BuildSchema::build($gql, $typeConfigDecorator);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fgql-scalar-date","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathsgod%2Fgql-scalar-date","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fgql-scalar-date/lists"}