Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thank you -- this worked right away with no trouble (storybook, urql, vue3, graphql) #122

Open
iambumblehead opened this issue Aug 12, 2022 · 4 comments

Comments

@iambumblehead
Copy link

thank you! I initially tried using an urql-specific addon and there were many issues and it didn't work. I really like that its possible to generate dynamically created responses later if I need those

export const NORMAL = Template.bind({});
NORMAL.decorators = [ vueRouter() ];
NORMAL.parameters = {
  mockData: [{
    url: endpointUrl,
    method: 'POST',
    status: 200,
    response: {
      data: {
        getSelf: {
          id: 'id',
          name: 'name',
          email: 'email'
        }
      }
    }
  }]
};
@ECW-HH
Copy link

ECW-HH commented Aug 16, 2022

Hi @iambumblehead ,
Did you use fetch to perform your API call in your Vue component ?
Or did you use axios ?

@iambumblehead
Copy link
Author

@ECW-HH I don't know how urql ultimately generates the request but I'll take a look now

@iambumblehead
Copy link
Author

@iambumblehead
Copy link
Author

https://github.com/FormidableLabs/urql/blob/main/docs/api/core.md this document indicates "window.fetch" is used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants