{"id":13565064,"url":"https://github.com/grooviter/gql","last_synced_at":"2025-05-12T04:30:31.989Z","repository":{"id":63577523,"uuid":"86925974","full_name":"grooviter/gql","owner":"grooviter","description":"Groovy GraphQL library","archived":false,"fork":false,"pushed_at":"2024-11-05T14:54:24.000Z","size":3040,"stargazers_count":49,"open_issues_count":3,"forks_count":5,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-01T00:05:57.003Z","etag":null,"topics":["graphql","groovy-language"],"latest_commit_sha":null,"homepage":"http://grooviter.github.io/gql/","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grooviter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-01T16:16:04.000Z","updated_at":"2024-11-05T09:30:10.000Z","dependencies_parsed_at":"2024-11-04T18:35:03.948Z","dependency_job_id":"2b58670c-6473-4da3-ac4e-f0093d98b595","html_url":"https://github.com/grooviter/gql","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grooviter%2Fgql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grooviter%2Fgql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grooviter%2Fgql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grooviter%2Fgql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grooviter","download_url":"https://codeload.github.com/grooviter/gql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253675048,"owners_count":21945888,"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":["graphql","groovy-language"],"created_at":"2024-08-01T13:01:40.163Z","updated_at":"2025-05-12T04:30:30.875Z","avatar_url":"https://github.com/grooviter.png","language":"Groovy","funding_links":[],"categories":["Groovy"],"sub_categories":[],"readme":"[![license](https://img.shields.io/github/license/grooviter/gql.svg)]() [![main](https://github.com/grooviter/gql/actions/workflows/gql-release.yml/badge.svg)](https://github.com/grooviter/gql/actions/workflows/gql-release.yml) ![Maven Central](https://img.shields.io/maven-central/v/com.github.grooviter/gql-core) ![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/com.github.grooviter/gql-core?server=https%3A%2F%2Fs01.oss.sonatype.org)\n\n## Description\n\n**GQL** is a set of [Groovy](http://www.groovy-lang.org) DSLs and AST\ntransformations built on top\nof [GraphQL-java](https://github.com/graphql-java/graphql-java) that\nmake it easier to build GraphQL schemas and execute **GraphQL**\nqueries without losing type safety.\n\n## Gradle\n\nIn order to use `GQL` releases in your Groovy code add the maven central repository and if you'd like to evaluate some\nsnapshots add the sonatype snapshots repository as well:\n\n```groovy\nrepositories {\n    mavenCentral()\n    maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' } // FOR SNAPSHOTS\n}\n```\n\nOnce you've declared the maven repositories then add the dependencies to your project:\n\n```groovy\ndependencies {\n    implementation 'com.github.grooviter:gql-core:VERSION'\n    implementation 'com.github.grooviter:gql-ratpack:VERSION'\n}\n```\n\n## Getting Started\n\nYou can directly execute the following example in your Groovy console:\n\n```groovy\n@Grab('com.github.grooviter:gql-core:1.1.0')\nimport gql.DSL\n\ndef GraphQLFilm = DSL.type('Film') {\n  field 'title', GraphQLString\n  field 'year', GraphQLInt\n}\n\ndef schema = DSL.schema {\n  queries {\n    field('lastFilm') {\n      type GraphQLFilm\n      staticValue(title: 'No Time to die', year: 2021)\n    }\n  }\n}\n\ndef query = \"\"\"\n  {\n    lastFilm {\n      year\n      title\n    }\n  }\n\"\"\"\n\ndef result = DSL.newExecutor(schema).execute(query)\n\nassert result.data.lastFilm.year == 2021\nassert result.data.lastFilm.title == 'No time to die'\n```\n\n## Documentation\n\nCurrent documentation is available at: http://grooviter.github.io/gql/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrooviter%2Fgql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrooviter%2Fgql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrooviter%2Fgql/lists"}