Git Product home page Git Product logo

Comments (2)

haikalpribadi avatar haikalpribadi commented on August 17, 2024

The solution to this is to add at least ONE argument first, before putting the optional array, which would enforce a minimum of ONE argument provided. So this signature:

Relation.players(RoleType... roleTypes)

Should be:

Relation.players(RoleType roleType, RoleType... roleTypes)

Make sure the logic of that method actually DISALLOW no arguments.

from typedb-driver.

haikalpribadi avatar haikalpribadi commented on August 17, 2024

@alexjpwalker this really shouldn't have been opened as an issue. If you did a quick "search" and check in the codebase, you would have found there were 3 methods where this issue could apply. Looking at those 3 methods, and their implementation on Grakn side took literally less than 1 minute, which I presume is faster if not relatively the same time as it would have taken to write this issue. In that one minute, you would have found that you didn't need to write this issue.

Screenshot 2021-02-02 at 17 23 18

from typedb-driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.