Documentation update: need schema.txt

Moved from GitHub tutorial/83

Posted by sandys:

age: int @index(int) .
friend: uid @count .

this needs to be in a schema.txt and passed in the commandline to ```dgraph live`` otherwise the read fails.
New commandline through docker is

docker run -it -v $(pwd):/dgraph --network=dgraph dgraph/dgraph dgraph live -v 2 -r 1million.rdf.gz -s schema.txt --zero dgraph_zero_1:5080 -d dgraph_alpha_1:9080 -c 1

MichelDiz commented :

Sorry, but where is this file?

sandys commented :

you need to create it with the following content.

name: string @index(term) @lang .
age: int @index(int) .
friend: uid @count .

MichelDiz commented :

Okay, but where? here? https://tour.dgraph.io/master/moredata/1/

Most topics of this Tour you do not need to enter Schema in the command line. For within the topic itself there will be the option to change (/Alter) the Schema in the text box.

If it’s not the case, I need to understand where it goes and why.

sandys commented :

Yup. You have the correct url.

We are looking at production use - so we are trying out bulk loading

On Mon, 5 Aug, 2019, 20:10 Michel Conrado, notifications@github.com wrote:

Okay, but where? here? https://tour.dgraph.io/master/moredata/1/

Most topics of this Tour you do not need to enter Schema in the command
line. For within the topic itself there will be the option to change
(/Alter) the Schema in the text box.

If it’s not the case, I need to understand where it goes and why.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dgraph-io/tutorial/issues/83?email_source=notifications&email_token=AAASYUZTRVR47624U5ODWGTQDA3VZA5CNFSM4IJEOJEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3SA5BI#issuecomment-518262405,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAASYU5FKIPQCCJHMBY6TSDQDA3VZANCNFSM4IJEOJEA
.

MichelDiz commented :

The purpose of the tour is to have a basic introduction tutorial for new users to explore Dgraph. More advanced situations users should look for documentation.

The link https://docs.dgraph.io/deploy/#live-loader should cover what you looking for.

campoy commented :

Hi there, @sandys

Happy to see that you’re working on a production use case! I’m the VP of Product here at Dgraph and would be very happy to help with any follow-up questions you might have.

We’re also available on our slack and discuss.

campoy commented :

Regarding this issue, are you saying that following the instructions of the tour in that specific page (https://tour.dgraph.io/master/moredata/1/) fails because there’s some missing instructions?

MichelDiz commented :

Closing this due inactivity.