Graphback: ClientSide plugin unable to generate subscription query unless otherwise mutation operation in model is set to `true`

Created on 30 Sep 2020  路  3Comments  路  Source: aerogear/graphback

  • Module: graphback/client-codegen
  • Version: 1.0.1
  • Node.js / npm versions:
  • Example/snippet of the model that is causing issue
"""
@model(create: false, update: false, delete: false, find: false, subCreate: true, subUpdate: true, subDelete: true)
"""
type Test {
  _id: GraphbackObjectID!
}

This will not generate any subscription.

while:

"""
@model(create: true, update: false, delete: false, find: false, subCreate: true, subUpdate: true, subDelete: true)
"""
type Test {
  _id: GraphbackObjectID!
}

Will only create the newTest subscription since the @model.create is set to true.

I think the generation should depend only on subXXX knobs.

bug good first issue Hacktoberfest plugins

Most helpful comment

Version: 1.0.1

I would see this as candidate for 1.0.2 :)

All 3 comments

/cc @craicoverflow, @wtrocki
Automatically generated comment to notify maintainers

Version: 1.0.1

I would see this as candidate for 1.0.2 :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

itsemirhanengin picture itsemirhanengin  路  3Comments

craicoverflow picture craicoverflow  路  3Comments

wtrocki picture wtrocki  路  6Comments

lastmjs picture lastmjs  路  7Comments

wtrocki picture wtrocki  路  6Comments