Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- useEffect (() => {
- const body = {
- query: `
- query blogs ($queryCommand: String, $limit: String){
- blogs (
- queryBy: $queryCommand,
- dataLimit: $limit
- ) {
- message
- status
- }
- }
- `,
- variables: {
- queryCommand: "recent",
- limit: "6"
- }
- }
- axios.post (GqAPI.blog, body)
- .then (data => {
- console.log(data.data)
- })
- .catch (err => {
- console.log(err)
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement