app/graphql/resolvers/create_reminder.rb
# the mutation method
# _obj - is parent object, which in this case is nil
# args - are the arguments passed
# _ctx - is the GraphQL context (which would be discussed later)
the mutation method
_obj - is parent object, which in this case is nil
args - are the arguments passed
_ctx - is the GraphQL context (which would be discussed later)
the mutation method _obj - is parent object which in this case is nil args - are the arguments passed _ctx - is the GraphQL context ( which would be discussed later )
def call(_obj, args, ctx)
    Reminder.create!(
        date: args[:date],
        user_id: ctx[:session][:user_id],
        reference: args[:reference],
        priority: args[:priority].to_i,
        service_type: args[:service_type],
        complete: args[:complete],
        vocus_ticket: args[:vocus_ticket],
        nbn_search: args[:nbn_search],
        notes: args[:notes],
        check_for: args[:check_for],
        fault_type: args[:fault_type],
        vocus: args[:vocus]
    )
  end
def call ( _obj , args , ctx ) Reminder . create! ( date : args [ :date ] , user_id : ctx [ :session ] [ :user_id ] , reference : args [ :reference ] , priority : args [ :priority ] . to_i , service_type : args [ :service_type ] , complete : args [ :complete ] , vocus_ticket : args [ :vocus_ticket ] , nbn_search : args [ :nbn_search ] , notes : args [ :notes ] , check_for : args [ :check_for ] , fault_type : args [ :fault_type ] , vocus : args [ :vocus ] ) end
the mutation method
_obj - is parent object, which in this case is nil
args - are the arguments passed
_ctx - is the GraphQL context (which would be discussed later)
the mutation method _obj - is parent object which in this case is nil args - are the arguments passed _ctx - is the GraphQL context ( which would be discussed later )
_obj
<not_specific>
args
<not_specific>
ctx
<not_specific>