Questions tagged [gql]

GQL is a SQL-like language for retrieving entities or keys from Google Cloud Datastore.

GQL is a SQL-like language for retrieving entities or keys from the . While GQL's features are different from those of a query language for a traditional relational database, the GQL syntax is similar to that of SQL.

Resources

537 questions
-1
votes
1 answer

how to pass the variables dynamic in GraphQL?

what changes need to perform the code: const data = client.mutate({ mutation: (Query) }); let Query = gql` mutation{ create(input:{ department:"Tester", code:"Tester" } ) { code, details, …
-1
votes
1 answer

Google gql SELECT * FROM xxx WHERE yyy='ABC' doesn't return the record

With GQL and also with objectify I can't get the entity filtering by a String property. If I use the datastore filter tool, I can get the entity If I use the GQL, the entity is not returned ...the index is ready
-1
votes
1 answer

What is the proper way to request this entity? Python and GQL

I'm trying to see if the username variable in the post function matches the username in the accountsArchive entity. I think the problem is that user.username isn't the proper way to reference the username entity. Also, the query above may have a…
-1
votes
1 answer

Find most frequent value in GAE Datastore column

I have a table in google app engine datastore as ItemData with columns as below. ------------------------------- | letter | f_no | s_no | t_no | ------------------------------- | A | 2 | 3 | 0 | | X | 5 | 8 | 5 | | C …
Bishan
  • 15,211
  • 52
  • 164
  • 258
-1
votes
1 answer

Google App Engine Python: Accessing the database object in another class

I will dive straight into the code of the application I'm developing using Google App Engine in Python: import os import webapp2 import jinja2 from google.appengine.ext import db template_dir = os.path.join(os.path.dirname(__file__),…
Manas Chaturvedi
  • 5,210
  • 18
  • 52
  • 104
-1
votes
1 answer

Getting Key from datastore (GAE)

How can I get the Key from a model I just inserted with put()? I'm talking about the value from the Key column from this image: https://i.stack.imgur.com/hT7hQ.png Also, what is exactly Key? IIRC it's something that GAE generates automatically, but…
alexandernst
  • 14,352
  • 22
  • 97
  • 197
-1
votes
1 answer

How to query the last element in a database class in Gql (Google Query Language)?

I have this database in GAE: class Contract(db.Model): # I renamed "Act" as "Contract" book_number = db.IntegerProperty(required = True) initial_page = db.IntegerProperty(required = True) final_page = db.IntegerProperty(required = True) …
craftApprentice
  • 2,697
  • 17
  • 58
  • 86
-2
votes
1 answer

How to get the last day of the month using Google’s Query Language GQL?

The GQL Reference lists DATE and DATETIME as functions - but doesn't list DATEADD, DATEPART, DATEDIFF or other common methods that can be used in ways to determine the last day of the month. How does one determine the last day of the month in GQL?
Praxiteles
  • 5,802
  • 9
  • 47
  • 78
-2
votes
1 answer

Google App Engine Datastore delete entity by properties

I made a simple login page with python and datastore. the User model is the following. class User(db.Model): name = db.StringProperty() password = db.StringProperty() Question 1: Lets say that I know the name and the password of a specific…
user3167683
  • 131
  • 1
  • 1
  • 15
-2
votes
1 answer

GQL of GoogleAppEngine doesn't work in Java code

I've a little problem with GQL for GoogleAppEngine. If i execute this query on my Datastore: SELECT * FROM CoursePO ORDER BY createdDate DESC LIMIT 4; it correctly shows me the response with maximum 4 results (tuple whatever as you want..). When i…
Aerox
  • 669
  • 1
  • 13
  • 28
-3
votes
1 answer

404 Not Found (The resource could not be found) - Trouble with GAE and Datastore

I am new to Python, GAE and the datastore model. So there are lots of things which I do not know yet, so please be patient :) I am working on a web service that allows people to post 'name' and 'desc' (description) of an item and it will be…
-4
votes
1 answer

Comparing two different properties in GQL

The following two GQL queries work: SELECT * FROM Customer WHERE FirstName = "John" SELECT * FROM Customer WHERE Rating > 4.0 But, when I combine them... SELECT * FROM Customer WHERE FirstName = "John" AND Rating > 4.0 ... I get an empty result…
arao6
  • 3,316
  • 5
  • 30
  • 51
1 2 3
35
36