Hello I am trying to upload a whole dataset to a database, but the query after the mutation doesn’t show the expected results the variable has two dicts
final = {
‘uid’: ‘:Scol1’,
‘dgraph.type’: ‘SuperCollection’,
‘Super_collection_name’: ‘SuperCol1’,
‘hasCollection’: [
{
‘uid’: ':ColA’,
‘dgraph.type’: ‘Collection’,
‘Collection_name’: ‘CollectionA’,
‘Description’: ‘lalala’,
‘hasSample’: [
{
‘uid’: ‘:BUR-FD-2001-MI-00216’,
‘dgraph.type’: ‘Sample’,
‘Sample_name’: ‘BUR-FD-2001-MI-00216’,
}
]
}
]
},
{
‘uid’: ':Scol1’,
‘dgraph.type’: ‘SuperCollection’,
‘Super_collection_name’: ‘SuperCol1’,
‘hasCollection’: [
{
‘uid’: ‘:ColA’,
‘dgraph.type’: ‘Collection’,
‘Collection_name’: ‘CollectionA’,
‘Description’: ‘lalala’, ‘hasSample’: [
{
‘uid’: ':BUR-FD-2001-MI-00217’,
‘dgraph.type’: ‘Sample’,
‘Sample_name’: ‘BUR-FD-2001-MI-00217’,
}
]
}
]
}
the schema is the following :
type SuperCollection {
Super_collection_name
hasCollection
hasSample
hasIsolate
contributedBy
}
type Collection {
Collection_name
Description
hasSuperCollection
hasSample
}
type Sample {
Sample_name
Sample_type
Collection_start_date
Collection_end_date
Sampling_purpose
collectedAt
collectedBy
hasPlanId
hasOrganism
collectedFrom
usedLabCharacterization
belongsTo
hasIsolate
hasSuperCollection
hasPublication
}
as you can see in the printscreen below is that I can only see the first sample the id ended in 2016, why is that?