Comments (12)
Merged and released v1.0.0-rc.8
from plugin-graphql.
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.
from plugin-graphql.
@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.
I did try this but unfortunately I ran into an error for a normal list type:
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.
No, that's ok. The LIST Type has no name. I will take a look :)
from plugin-graphql.
I pushed a fix. Could you try again? :)
from plugin-graphql.
Also I deployed the documentation: https://vuex-orm.github.io/vuex-orm-graphql/guide/connection-mode/
from plugin-graphql.
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.
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.
From documentation is not clear where to configure this.
from plugin-graphql.
Sorted #106 (comment) -> https://vuex-orm.github.io/plugin-graphql/guide/adapters.html
from plugin-graphql.
Related Issues (20)
- Forcing upcase on model name in buildQuery overwites value set by adapter
- Error: No such model HOT 1
- Need to change the "typings" path to "dist/index.d.ts" HOT 2
- morphToMany not return related models HOT 2
- Custom query not working returning Couldn't find Type of name UserInput in the GraphQL Schema. HOT 3
- Where to get type definitions for 'fetch' in TypeScript?
- v1.0.0-rc.42 not published to NPM? HOT 1
- Trouble with fetch() in Nuxt app HOT 1
- How to handle models that have multiple words? HOT 2
- Better documentation about how to $persist() a record with Many-to-many relationships
- getInputTypeName() seems to be ignored HOT 1
- GraphQL Upload support
- persist ID as string shows NaN HOT 2
- toPrimaryKey broke ObjectId from MongoDB HOT 1
- BUG: .$push does not add variables to variable definitions on mutation HOT 1
- method .all() not returns pure literal object from database (store)
- "Connection mode" doc page unclear
- Type errors HOT 1
- State of Vue 3 support? HOT 1
- Slack invite link is dead 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 plugin-graphql.