Dgo mutation with variables

hi,

i wish to do this with dgo mutation using SetNquads

_, err := txn.Mutate(ctx, &api.Mutation{
		CommitNow: true,
		SetNquads: []byte(`
			_:alice <name> "alice" .
			_:bob <name> "bob" .
			_:carol <name> "carol" .
			_:alice <follow> _:carol .
			_:bob <follow> _:carol .
		`),
	})

but how do i pass in as variable instead of value like “alice”?
i wish to have some kind of safe variable that i would not get rdf injection here…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.