I’m trying to build backend api of grakn 1.8.4 for a frontend UI. During the coding, I found different behaviors for putting session and client inside or outside of sub function.
Assue, in a script, if all functions share the same session, but not clients, then sometimes, the results are not updated in grakn. And sometimes, I found the inconsistence between console and coding output.Sorry, I couldn’t explain the question more specifically. But I think I’m lacking of some key understandings.
What’s the best practice to deal with session and client when coding the backend api?