Skip to content

ArgumentMode = LIST not working #118

@cwirz

Description

@cwirz

I have defined a custom Adapter like this:

import {ConnectionMode, DefaultAdapter, ArgumentMode} from '@vuex-orm/plugin-graphql';

export default class CustomAdapter extends DefaultAdapter {
  getConnectionMode () {
    return ConnectionMode['PLAIN']
  }

  getArgumentMode () {
    return ArgumentMode.LIST
  }
}

But when i do a fetch the request contains still the filter argument:

query Users($organisation: ID!) {
  users(filter: {organisation: $organisation}) {
    username
    fullName
    userProfile {
      hourlyCost
      currentOrganisation {
        id
        name
        __typename
      }
      __typename
    }
    __typename
  }
}

Any idea how to fix this?
I had the same problem with ConnectionMode and got it to work after a while with ConnectionMode['PLAIN']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions