Created
August 20, 2018 21:40
-
-
Save kamilkisiela/37532f2cf5d2f7c4058017dfd6a7738c to your computer and use it in GitHub Desktop.
FeedGQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { Query } from 'apollo-angular'; | |
import gql from 'graphql-tag'; | |
@Injectable({...}) | |
export class FeedGQL extends Query { | |
document = gql` | |
query Feed { | |
posts { | |
id | |
title | |
} | |
} | |
` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment