typhon-project / typhonql

Typhon Query Language
Eclipse Public License 2.0
4 stars 1 forks source link

Create attributes in a document database #29

Closed benatspo closed 4 years ago

benatspo commented 4 years ago

Hi,

Actually, adding an attribute in an entity in a document database, using the web service, returns an error (HTTP 500). Even if it does not make sense to add an attribute to a document entity, should it be possible not to return an error using the webservice (perhaps a problem for CLMS?)?

Thank you

pinoval commented 4 years ago

Could you please provide the query you are trying to execute?

benatspo commented 4 years ago

For example, i simply uploaded a new XMI model file, containing a new attribute for a document database entity. After upload, I did not reset the databases, not to lose my data. Then, to be coherent, I wanted to add the attribute in the corresponding database, using a QL query in the webservice: create User.address : str

The webservice returned a 500 error code. It makes sense because it is useless to create an attribute in document database.

Could you please return a success code for such a query, even if it does nothing? It would permit us not to know the underlying database, when evolving an entity.

Thank you