{"id":13723947,"url":"https://github.com/cescoferraro/structql","last_synced_at":"2025-12-30T14:13:19.159Z","repository":{"id":79798941,"uuid":"257877608","full_name":"cescoferraro/structql","owner":"cescoferraro","description":"Transform structs into Graphql types. For super fast Graphql development using Go","archived":false,"fork":false,"pushed_at":"2020-04-26T13:58:29.000Z","size":17,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-14T13:36:59.416Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cescoferraro.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-04-22T11:13:11.000Z","updated_at":"2021-10-27T16:38:48.000Z","dependencies_parsed_at":"2024-01-06T00:43:11.491Z","dependency_job_id":"e21d7a2e-3a86-40f9-aa41-ecaab85fb13a","html_url":"https://github.com/cescoferraro/structql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cescoferraro%2Fstructql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cescoferraro%2Fstructql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cescoferraro%2Fstructql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cescoferraro%2Fstructql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cescoferraro","download_url":"https://codeload.github.com/cescoferraro/structql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252926757,"owners_count":21826360,"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-03T01:01:47.513Z","updated_at":"2025-12-30T14:13:19.095Z","avatar_url":"https://github.com/cescoferraro.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# structql\n\n[![GoDoc](https://godoc.org/github.com/cescoferraro/structql?status.svg)](https://godoc.org/github.com/cescoferraro/structql)\n\n\nEasily generate graphl type from any struct in any library. Turns any go package type into a graphql ready object for super fast go/graphql development.\n\n\ttype Token struct {\n\t\tCode string `json:\"code\"`\n\t\tMax int `json:\"max\"`\n\t\tValid bool `json:\"valid\"`\n\t\tExpiry time.Time `json:\"expiry\"`\n\t\tData Data `json:\"data\"`\n\t}\n\n\ttype Data struct {\n\t\tName string `json:\"name\"`\n\t\tTrys int `json:\"trys\"`\n\t\tValid bool `json:\"valid\"`\n\t\tExpiry time.Time `json:\"expiry\"`\n\t}\n\n#### Usings struct as graphql type:\n\t\"token\": \u0026graphql.Field{\n\t\tType: structql.GenerateType(Token{}),\n\t\tResolve: func(p graphql.ResolveParams) (interface{}, error) {\n\t\t\treturn Token{\n\t\t\t\tCode:   \"super-secret\",\n\t\t\t\tMax:    2,\n\t\t\t\tValid:  false,\n\t\t\t\tExpiry: time.Now(),\n\t\t\t\tData: Data{\n\t\t\t\t\tName:   \"yay\",\n\t\t\t\t\tTrys:   40,\n\t\t\t\t\tValid:  true,\n\t\t\t\t\tExpiry: time.Now(),\n\t\t\t\t},\n\t\t\t}, nil\n\t\t},\n\t},\n\n\n![image](https://user-images.githubusercontent.com/6259987/79978873-fe8ecc00-8476-11ea-8468-bdedeae39685.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcescoferraro%2Fstructql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcescoferraro%2Fstructql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcescoferraro%2Fstructql/lists"}