Comments (4)
It seems you put the wrong url that points to your graphiql (the devtool) instead of the actual graphql server.
from apollo.
Thanks for reply i am trying to create mutations here is my code please can you help me to check this and correct my code please
<template>
<div class="create-user">
<h3>Create Your Account</h3>
<form class="" action="index.html" method="post">
<input type="text" placeholder="Name" v-model="userName">
<input type="text" placeholder="Mobile Number" v-model="mobileNumber">
<input type="text" placeholder="Email" v-model="email">
<input type="text" placeholder="Password" v-model="password">
<input type="text" placeholder="Password Confirmation" v-model="passwordConfirmation">
<button @click="user">Submit</button>
</form>
</div>
</template>
<script>
import gql from 'graphql-tag';
// GraphQL query
const userMutation = gql`
mutation createUser($userId: Int!) {
createUser(userId: $userId) {
clientMutationId
username
mobile_number
email
password
password_confirmation
}
}
`;
export default {
// Attribute
props: {
userId: {
type: Number,
required: true
},
},
methods: {
user() {
this.$appolo.mutate({
mutation: userMutation,
variables: {
userId: this.userId,
}
})
}
}
}
</script>
<style lang="css">
</style>
from apollo.
This seems fine to me.
from apollo.
If you have other requests, please open a new issue for each of them. Closing this since the original problem has been answered.
from apollo.
Related Issues (20)
- console log remained in code
- Unable to view V4 documentation
- useFragment HOT 2
- Setup Apollo for a Vue+SSR app HOT 14
- Not work with 3.2.25 HOT 2
- Make `provideApolloClient` default client disposable.
- Remove automatic subscription retry on error
- Can't receive messages in a chat using subscription
- skip() doesn't skip query HOT 1
- @vue/apollo-ssr doesn't work in SSR mode
- Fragments aren't returned in results when using useQuery/useLazyQuery reactive refs HOT 2
- Using vue-apollo-composable inside a Pinia setup store HOT 2
- `useApolloClient` checks wrong conditions before calling `inject()`
- useQuery blocks page load on 4.0.0 HOT 2
- useQuery with fetchPolicy: cache-only does not return expected data HOT 3
- Doesn't update the data after a mutation if `enabled` is `false` in `useQuery`
- Queries are not executed in given order
- @vue/[email protected] has a peer dependency conflict with Vue 3 HOT 4
- [docs] The installation guide is very bad HOT 1
- Refetch with New Variables Overrides Other Existing Refetches HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo.