Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EntityQuery ignores custom json adapter #191

Open
djleonskennedy opened this issue Mar 21, 2017 · 0 comments
Open

EntityQuery ignores custom json adapter #191

djleonskennedy opened this issue Mar 21, 2017 · 0 comments

Comments

@djleonskennedy
Copy link

Hello

I need apply json adapter to one request

Please advice why query ignores my json adapter

 public getCustom(typeName, query) {
    const config: any = {
      name: 'excellJsonAdapter',
      extractResults: (data: any) => {
        debugger // doesn't stop here
        return data
      },
      visitNode: () => {}
    };

    const entityQuery = this.buildRecordQuery(typeName, query);

    const _query = entityQuery.query // this is EntityQuery
      .using(new JsonResultsAdapter(config))

    this.em.executeQuery(_query).then(res => res) // error cause not json recieved
  }

using breeze-bridge-angular2

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant