Skip to content

Create schema for all client stubs #113

@eye-dee

Description

@eye-dee

If I create client with several alphas:
self.client = pydgraph.DgraphClient(self.client_stub1, self.client_stub2, self.client_stub3)

Should I have possibility to execute schema creation for all nodes instead of one?

op = pydgraph.Operation(schema=self.query.get_query_by_name('schema.txt'))
self.client1.alter(op)

....

return self.any_client().alter(operation, timeout=timeout,
                                           metadata=new_metadata,
                                           credentials=credentials)

Instead we're getting one random client and only one alpha will have appropriate schema, then requests to other alphas will fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions