https://github.com/fadilxcoder/graphql-client
GraphQL - PHP / JS
https://github.com/fadilxcoder/graphql-client
graphql js notes php poc
Last synced: about 1 year ago
JSON representation
GraphQL - PHP / JS
- Host: GitHub
- URL: https://github.com/fadilxcoder/graphql-client
- Owner: fadilxcoder
- Created: 2021-03-29T16:34:16.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-07T18:55:49.000Z (about 5 years ago)
- Last Synced: 2025-01-04T19:23:57.413Z (over 1 year ago)
- Topics: graphql, js, notes, php, poc
- Language: PHP
- Homepage: https://fadilxcoder.github.io/graphql-client/js/index.html
- Size: 119 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Notes
- https://graphqlzero.almansi.me/
- https://graphqlzero.almansi.me/api
- `defer` is JS - A script that will not run until after the page has loaded
## Resources
- https://packagist.org/packages/gmostafa/php-graphql-client
- https://github.com/mghoneimy/php-graphql-client
- Package : `composer require gmostafa/php-graphql-client`
## GraphQL in Php (php)
- All queries located in `queries.php`
- Response in `index.php`
- - **GET** Single query
- - **GET** Single query with *query variable*
- - **GET** Complex query with multiple objects
- - **POST** Create user
## GraphQL in Javascript (js)
- Uses webpack, do `npm install`
- - For installing JQuery : `npm i jquery`
- - Compile JS in watch mode : `npm run build -- watch`