Skip to content

Error on client #16

@ricaragao

Description

@ricaragao

I have an error in my client:

Exception in template helper: TypeError: Template.instance(...).gqlQuery is not a function

Below my code:

import './directors.html';
import gql from 'graphql-tag';

const MY_QUERY = gql`{
	getDirectors {
    label
    hostname
    ip
  }
}`

Template.directors.helpers({
  directors() {
    return Template.instance()
      .gqlQuery({
        query: MY_QUERY
      })
      .get();

  }
});

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