GraphQL
Mis à jour
@Injectable({
providedIn: 'root'
})
export class UserListQuery extends Query<{ users: User[] }> {
document = gql`query UserList {
users {
id
firstName
lastName
}
}`;
}this._userListQuery.fetch()
.subscribe(({data}) => this.userList = data.users);