Preparing data for Integration testing with Dgraph

Hi Team,

I am just figuring out the best way to populate data into Dgraph for integration testing(mainly queries). To represent data in rdf or json feels messy once the number of Predicates(relations) increases. I also tried csv, then again there is this code to transform it into NQuad before loading and this code also needs maintenance if there are some changes to schema etc. Any suggestions on this will be much appreciated.

Thanks

Hey @dharmjit,

You can check this file to see how we’re populating the data for integration testing.

and this file for the queries for testing.

Let me know in case you still face any problems.