Comments (2)
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.
@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.
from typedb-driver.
Related Issues (20)
- Python driver's put_rule() method has unexpected arguments syntax HOT 3
- explainables().ownerships() method throws a TypeError exception
- Excessive precision loss occurs when storing doubles
- Driver does not appear to properly destroy resources
- Error thrown if aggregate subquery returns NaN HOT 3
- Update Python driver to remove deprecated type hint syntax
- Reasoner behaviour step "verify answers are consistent across N executions" ignored
- Type hint in signature of `Thing.get_relations` is incorrect HOT 2
- Allow label strings to be used in place of type/role objects wherever possible
- Language Driver Request for Golang HOT 3
- Promise should not attempt to resolve more than once over the FFI boundary
- Fix and return python integration test `test_cloud_failover` to Factory
- Add alternatives for time zone based BDD steps for languages with no (or limited) support of time zone change
- Catch "UnsatisfiedLinkError" and display a better message to the user in event of platform triple mismatch
- 3.0: Ensure queries are interruptible and transaction close cleans up resources
- Rust Chrono versions conflict HOT 3
- Gleam HOT 1
- [Python Driver] client.close() doesn't appear to work HOT 2
- Language Driver Request for LEAN4
- GRPC calls may hang indefinitely in the event of a server fault
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typedb-driver.