Commit a66914d8 by Tuukka Kivilahti

removed testing changes and fixed linting

1 parent a4fefec4
...@@ -12,18 +12,10 @@ export class VipProduct { ...@@ -12,18 +12,10 @@ export class VipProduct {
fragment vipProductPrimitives on VipProduct { fragment vipProductPrimitives on VipProduct {
id id
name name
quantity
}
`;
/*
static fragmentsZ = gql`
fragment vipProductPrimitives on VipProduct {
id
name
notes notes
quantity quantity
} }
`;*/ `;
id: number; id: number;
name: string; name: string;
......
...@@ -69,7 +69,7 @@ export class ViplistService { ...@@ -69,7 +69,7 @@ export class ViplistService {
* get vips * get vips
*/ */
public get(): Observable<Array<Vip>> { public get(): Observable<Array<Vip>> {
return this.apollo.watchQuery<VipsQueryRoot>({query: Q_VIPS_N_DATA}).valueChanges.pipe(map(x =>{ console.log(x.data.vips); return x.data.vips})); return this.apollo.watchQuery<VipsQueryRoot>({query: Q_VIPS_N_DATA}).valueChanges.pipe(map(x => { console.log(x.data.vips); return x.data.vips; }));
// return this.apollo.query<vipsQueryRoot>({query: Q_VIPS_N_DATA}).pipe(map(x => x.data.vips)); // return this.apollo.query<vipsQueryRoot>({query: Q_VIPS_N_DATA}).pipe(map(x => x.data.vips));
} }
......
...@@ -15,16 +15,8 @@ export enum UserGender { ...@@ -15,16 +15,8 @@ export enum UserGender {
export class User { export class User {
static fragments = gql`
fragment userPrimitives on User {
address
birthday
email
}
`; static fragments = gql`
/*
static fragmentsZZ = gql`
fragment userPrimitives on User { fragment userPrimitives on User {
address address
allergiesFreetext allergiesFreetext
...@@ -45,7 +37,6 @@ export class User { ...@@ -45,7 +37,6 @@ export class User {
`; `;
*/
nick: string; nick: string;
login: string; login: string;
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
"label-position": true, "label-position": true,
"max-line-length": [ "max-line-length": [
true, true,
140 200
], ],
"member-access": false, "member-access": false,
"member-ordering": [ "member-ordering": [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!