EM
Size: a a a
EM
NT
NT
MS
type Tovar {или
amount: Int
location: String
productSpecification: Product
}
и в productSpecification выходили только поля:
productSpecification {
sort: "Твердая"
class: "3"
}
productSpecification {т.е. зависимости от того что вернет сервер, чтобы клиенту не приходилось выяснять Мука это или Пшеница. А через interface клиенту нужно выяснять что за товар.
belizna: "55%"
idk: "2"
}
MS
const authLink = setContext((_, { headers }) => {
// get the authentication token from local storage if it exists
let token = localStorage.getItem('token');
// return the headers to the context so httpLink can read them
const h = {
...headers,
'meteor-login-token': token,
};
console.log(h);
return {
headers: h
};
});
MS
currentUser (obj, args, context) {
console.log(context.userId)
}
MS
NT
NT
MS
NT
MS
NT
MS
MS
MS
NT
NT
MS