Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure facets are functioning #36

Open
elbow-jason opened this issue Aug 20, 2017 · 1 comment
Open

ensure facets are functioning #36

elbow-jason opened this issue Aug 20, 2017 · 1 comment

Comments

@elbow-jason
Copy link
Owner

This one might be a bit of a challenge.

if I have a person struct

defmodule Person do
  use Dgraph.Vertex
  vertex :person do
    field :name, :string, index: [:exact]
  end
end

If there is a value "Jason" of an edge "name" and it has a facet (confirmed=true) it may be necessary to populate the :name field of the %Person{} struct with some sort of %Facet{} struct to ensure the data "Jason" stays close to the extra facet data confirmed=true.

I imaging something like this:

%Facet{
  value: "Jason",
  facets: %{"confirmed" => true},
}
@elbow-jason elbow-jason changed the title ensure facets are workin ensure facets are functioning Aug 20, 2017
@elbow-jason
Copy link
Owner Author

Upon viewing the dgraph's response with facets I think the facets example/idea above is not the way to proceed.

Perhaps a :facets on the Vertex model?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant