GraphQL
- 16 ответов
- 0 вопросов
8
Вклад в тег
type
Чувствительная к регистру строка, представляющая тип прослушиваемого события.
['click', 'mouseover']. map(type => document.querySelector('.o').addEventListener(type, (event)=> {
console.log(event.type, document.querySelector('.o').textContent);
}))
type Metric {
id: Int!
something: String
}
type Metric {
id: Int!
""" Боевая переменная """
something: String
""" Для тестов """
entities: Int
}
const mutation = `
mutation createUser($firstName: String,$secondName: String, $email: String,$password:String){
createUser(firstName: $firstName,secondName:$secondName,email:$email, password:$password){
signup(
firstName
secondName
email
password
)
}
}`;
const mutation = `
mutation createUser(
$firstName: String
$secondName: String
$email: String
$password: String
) {
signup(
firstName: $firstName
secondName: $secondName
email: $email
password: $password
)
}
`;
type Mutation {
signup(
firstName: String!
secondName: String!
email: String!
password: String!
): String
// ...
}
const mutation = `
mutation createUser(
$firstName: String!
$secondName: String!
$email: String!
$password: String!
) {
signup(
firstName: $firstName
secondName: $secondName
email: $email
password: $password
)
}
`;