Package Flutter/DGraph not RUN!

bug

#1

Hello

I’m currently developing on Flutter/Dart, and I want to integrate the Dart/DGraph package.
https://pub.dev/packages/dgraph

When integrating, I encounter a problem below, do you have any idea of where the problem may come from.

Under Dart, unfortunately, this is the only package that exists apparently!

Is there another solution?

Thank you in advance for your help.

Error Message:

gRPC Error (13, grpc: error unmarshalling request: proto: wrong wireType = 2 for field StartTs)

My code:

// Run a query
String query = """
query all (\ $ a: string) {
   all (func: eq (name, \ $ a)) {
     name
   }
}
""";
  api.Response response = await txn.QueryWithVars (clientContext, query, {"\ $ a": "Star Wars: Episode IV - A New Hope"});

(Michel Conrado) #2

Is it open source? (Is it this one? https://github.com/marceloneppel/dgraph)

Do you have a model for StartTs?

You can perfectly use the Dgraph’s HTTP API.
https://docs.dgraph.io/clients/#raw-http

Any HTTP package works fine. Dio, HTTP or whatever.


#3

thank you for your exchange.

Yes it is an open source.

I wanted to do an end-to-end POC using the DGraph STARTED examples and I hang on the connector using the gRPC

In solution: I try to go through HTTP.

Thank you again for your exchange.