GithubHelp home page GithubHelp logo

Comments (12)

phortx avatar phortx commented on August 25, 2024 1

Merged and released v1.0.0-rc.8

from plugin-graphql.

phortx avatar phortx commented on August 25, 2024

I thought about that and I think the plugin should be as flexible as possible. That doesn't mean we will implement every guff of everyone, but when there is no clear standard and many different implementations, I think we should support that.

I will implement that in the next days.

from plugin-graphql.

phortx avatar phortx commented on August 25, 2024

#29

from plugin-graphql.

phortx avatar phortx commented on August 25, 2024

@oligus I've created a PR for that.

Could you test it if it works for you? You can simply checkout the branch, run yarn link within the Vuex-ORM-GraphQL directory and then run yarn link @vuex-orm/plugin-graphql in your project (you have to recompile your project).

In best case everything works out of the box. Otherwise you maybe have to pass connectionQueryMode: 'plain' to the options.

I'm looking forward to hear your feedback :)

Thanks for your help!

from plugin-graphql.

oligus avatar oligus commented on August 25, 2024

@phortx

I did try this but unfortunately I ran into an error for a normal list type:

screenshot from 2018-06-20 15-10-49

It might be the way we implement GraphQL, but as I understand it name should be included in the type?

This error occurred without nodes/edges

Using nodes:

vuex-orm-graphql.esm.js?71e0:9875 Uncaught (in promise) Error: Can't determine the connection mode due to the fact that here are no connection types in the schema. Please set the connecitonQueryMode via Vuex-ORM-GraphQL options!

It works how ever by setting connectionQueryMode = 'nodes'

Thanks!

from plugin-graphql.

phortx avatar phortx commented on August 25, 2024

No, that's ok. The LIST Type has no name. I will take a look :)

from plugin-graphql.

phortx avatar phortx commented on August 25, 2024

I pushed a fix. Could you try again? :)

from plugin-graphql.

phortx avatar phortx commented on August 25, 2024

Also I deployed the documentation: https://vuex-orm.github.io/vuex-orm-graphql/guide/connection-mode/

from plugin-graphql.

oligus avatar oligus commented on August 25, 2024

Thanks it works now both in plain and nodes mode. The auto detection doesn't seem to work for either.

Also, the error message contains spelling error:
Error: Can't determine the connection mode due to the fact that here are no connection types in the schema. Please set the connecitonQueryMode via Vuex-ORM-GraphQL options

connecitonQueryMode should be connectionQueryMode

Thanks again!

from plugin-graphql.

phortx avatar phortx commented on August 25, 2024

Pity. However this may be related how the GraphQL Schema reacts to the introspection query.

Thanks for the testing and the advice. I think this is a good base we can start with :)

from plugin-graphql.

creaux avatar creaux commented on August 25, 2024

From documentation is not clear where to configure this.

from plugin-graphql.

creaux avatar creaux commented on August 25, 2024

Sorted #106 (comment) -> https://vuex-orm.github.io/plugin-graphql/guide/adapters.html

from plugin-graphql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.