{"id":24703236,"url":"https://github.com/dsaouda/phpconf2017-graphql","last_synced_at":"2026-04-17T11:32:47.024Z","repository":{"id":113237089,"uuid":"113436353","full_name":"dsaouda/phpconf2017-graphql","owner":"dsaouda","description":"Exemplo simples de graphql","archived":false,"fork":false,"pushed_at":"2017-12-11T22:02:11.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T04:41:29.619Z","etag":null,"topics":["graphql","php","phpconf"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/dsaouda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-12-07T10:25:30.000Z","updated_at":"2017-12-11T22:52:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"4538767e-d572-4aa5-a35a-85ede5251628","html_url":"https://github.com/dsaouda/phpconf2017-graphql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dsaouda/phpconf2017-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsaouda%2Fphpconf2017-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsaouda%2Fphpconf2017-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsaouda%2Fphpconf2017-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsaouda%2Fphpconf2017-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsaouda","download_url":"https://codeload.github.com/dsaouda/phpconf2017-graphql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsaouda%2Fphpconf2017-graphql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31927853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:35:34.458Z","status":"ssl_error","status_checked_at":"2026-04-17T10:35:09.472Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","php","phpconf"],"created_at":"2025-01-27T05:52:17.080Z","updated_at":"2026-04-17T11:32:47.019Z","avatar_url":"https://github.com/dsaouda.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql phpconf 2017\r\n\r\nExemplos simples usados para fazer uma pequena demonostração de graphql no phpconf 2017\r\n\r\n# rodando\r\n\r\nexecute em seu terminal `php -S 0.0.0.0:8080`\r\n\r\nem um editor (você pode usar o [graphiql](https://github.com/graphql/graphiql)) informe a url `http://\u003chost\u003e/02-cep.php`\r\n\r\n# exemplos de querys\r\n\r\nSeparei algumas querys que podem ser usadas\r\n\r\n## query\r\n\r\n```\r\n{\r\n  endereco(cep: \"07083150\") {\r\n    logradouro \r\n    localidade \r\n    bairro \r\n    uf \r\n    cep\r\n  }  \r\n}\r\n```\r\n\r\n## variable\r\n\r\n```\r\nquery ($cep: String!){\r\n  endereco(cep: $cep) {\r\n    logradouro \r\n    localidade \r\n    bairro \r\n    uf \r\n    cep\r\n  }  \r\n}\r\n\r\n#query variables\r\n{\r\n  \"cep\": \"07181100\"\r\n}\r\n```\r\n\r\n## alias\r\n\r\n```\r\n{\r\n  e1: endereco(cep: \"07083150\") {\r\n    logradouro \r\n    localidade \r\n    bairro \r\n    uf \r\n    cep\r\n  }  \r\n  \r\n  e2: endereco(cep: \"07181100\") {\r\n    localidade     \r\n  }  \r\n  \r\n  e3: endereco(cep: \"06020190\") {\r\n    logradouro\r\n    uf\r\n  }  \r\n}\r\n\r\n```\r\n\r\n## fragments\r\n\r\n```\r\n{\r\n  e1: endereco(cep: \"07083150\") {\r\n    ...detalhe\r\n  }  \r\n  \r\n  e2: endereco(cep: \"07181100\") {\r\n    ...detalhe     \r\n  }  \r\n  \r\n  e3: endereco(cep: \"06020190\") {\r\n    ...detalhe\r\n  }  \r\n}\r\n\r\nfragment detalhe on Endereco {\r\n  logradouro\r\n  localidade\r\n  uf\r\n}\r\n\r\n```\r\n\r\n## directives\r\n```\r\nquery ($cep: String!, $includeBairro: Boolean = true){\r\n  endereco(cep: $cep) {\r\n    logradouro \r\n    localidade \r\n    bairro @include(if: $includeBairro)\r\n    uf \r\n    cep\r\n  }  \r\n}\r\n\r\n#query variables\r\n{\r\n  \"cep\": \"07181100\",\r\n  \"includeBairro\": true\r\n}\r\n```\r\n\r\n## mutation\r\n```\r\nmutation {\r\n  removerCache(cep: \"06020190\")\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsaouda%2Fphpconf2017-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsaouda%2Fphpconf2017-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsaouda%2Fphpconf2017-graphql/lists"}