Updating the build when data in query is updated - graphql-js

I'm working on a simple Gatsby project in which I'm querying and mutating data. The question is If we use GraphQl query via plugin and generate a build. How we can update the build when data in query is updated.

Related

Metadata Does Not seem to update correctly

Our company uses Hasura Cloud with a React js front end with gQlApollo.
I recently added a new column "myString" to type "myType" in our database and was able to successfully update our Hasura Cloud instance by resetting the Metadata within settings.
I know this worked because when I use the API on Hasura Cloud I am able to successfully return the new column and its value.
I also see that the graphQl Engine metadata is green as shown here status of graphQl engine metadata
The problem is when I try to query this new column locally it seems that this metadata is not successfully being updated there. I have no local hasura core so the suggestion online to preform a hasura metadata clear does not apply to me.
I have tried:
resetting my browser history
run hasura init and reset the meta data after which did not fix my problem
Any idea how I can accomplish resetting the metadata locally?
Solved my issue! It was because I had not changed the permissions for the newly created column in cloud.hasura.io. Now that I have added that it works without needing to reset the Metadata at all.

Flutter Sqlite Exception,No such table, SQL logic Error

I'm creating on my own a to-do app using Flutter. When I compile and try to insert a data in sqlite database, I got this error Flutter Sqlite Exception,No such table task, SQL logic Error.
Note: I use moor_ffi, moor
,and generate the database.g.dart file using command flutter packages pub run build_runner build.
From moor documentation:
Why am I getting no such table errors?
If you add another table after your app has already been installed,
you need to write a migration that covers creating that table. If
you’re in the process of developing your app and want to use un- and
reinstall your app instead of writing migrations, that’s fine too.
Please note that your apps data might be backed up on Android, so
manually deleting your app’s data instead of a reinstall is necessary
on some devices.
So everytime you have modified your database, you need to re-install your app or increase the schema version in your database.
#override
int get schemaVersion => 2;

Yii2 is it possible to run rest action within the app itself?

I have created a REST project in yii2 and i have some yaml data that should be stored in the database. These are crowd data, that is authorized people can add new yaml files and our app will parse those data and store in database.
But these data might change in the future (i.e. add/delete columns) which would rely on version of the REST api (v1.0, v2.0 etc)
Thus i would like to call the appropriate rest action to do it.
I know there is the function $controller->run() but how do i use it to make a POST or a PUT request?
Is there any alternative to using yii httpclient?
Thanks
If I am not wrong, you want to execute different action depending on the version of the API.
For that, you can create modules inside your frontend/backend directory and name the modules as per your versions. Whenever you have a new version create a new module and upgrade the version name. Thus you always get the proper versioning. So v1, v2.. will be modules in your project.
The good thing about this is that you can have same action name in different modules under same controller name. Thus if in version 1 you have 5 columns and the api is like /v1/data then you can have 7 columns in version 2 and the api can be like /v2/data.
For more details on modules: http://www.yiiframework.com/doc-2.0/guide-structure-modules.html

Entity Framework - Update database manually

I am new to entity framework and using EF 6.1.1... using code first approach i have generated the database..
When i run my application from Visual Studio in my local machine..
and update a record from my application.. it immediately reflects in ui immediately..
but if i update the records in database manually.. then the changes are not reflected immediately in ui.. i need to rebuild the solution to and run it again to bring the updated data to ui..
Just need to know if this is how entity framework works?? if yes, is there a way to make the ui to sync with database even for manual updates without rebuilding the solution..
Please let me know if you need any other information..

CRM 2011 Async Post Update Plugin

I have an Aynchronous Post-Operation plugin runs on an Update step. Now my challange is to find original values for the fields that the user is updating. Since it is post-operation step, is it possible to find the previous value fields that were updated?
Thanks!
Yes. Register a preimage snapshot of your entity against the step in your plugin.
Pre and Post Entity Images